Updating read-only fields on list view - UI list action?

Tony Flower
Tera Contributor

We have a scoped app with some tables.  One table has a reference field to another table within the app. Very occasionally power users need to update that reference field to the same value for a number of records at a time (up to 50). This is easy from the list view - double click to cell edit! - if the field is writable. the problem is, it's read only!

 

The below screenshot below shows an example from a dummy app. Here, the 'Gotchas' table has a column that references 'Gremlin' table.  Updating the Gremlin field on multiple records is easy on the list view, but only if the field is writable.  Any ideas how we could do this if its read only - making the selection and confirming the action.

 

Maybe a UI list action? Not sure how to popup a dialogue box for field select though. I've tried to find some examples but no luck. 😞

 

Any ideas?

 

gremlins.png

 

1 ACCEPTED SOLUTION

-O-
Kilo Patron
Kilo Patron

I think what you want is UI Context Menus - this is how a new one looks like:

2023-01-10-5.png

 and this is the result:

2023-01-10-6.png

I suppose the comments in the default script are pretty self explanatory. You can get the list of sys_ids and you can then do a GlideAjax call. Through the global object GlideLists2 you can get to the list and request a refresh once the GlideAjax call is finished.

View solution in original post

3 REPLIES 3

-O-
Kilo Patron
Kilo Patron

I think what you want is UI Context Menus - this is how a new one looks like:

2023-01-10-5.png

 and this is the result:

2023-01-10-6.png

I suppose the comments in the default script are pretty self explanatory. You can get the list of sys_ids and you can then do a GlideAjax call. Through the global object GlideLists2 you can get to the list and request a refresh once the GlideAjax call is finished.

Tony Flower
Tera Contributor

Perfect - Thank you!

You're most welcome and thanks for marking the solution!