- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 03:24 PM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 05:20 PM
I think what you want is UI Context Menus - this is how a new one looks like:
and this is the result:
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 05:20 PM
I think what you want is UI Context Menus - this is how a new one looks like:
and this is the result:
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 02:46 AM
Perfect - Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 03:42 AM
You're most welcome and thanks for marking the solution!