- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2024 12:41 AM
I tried the example provided ty reference, and it really worked out that seemed right.
But it turned out that I couldn't find out the UI page named "UI_dialog_name"
example of the reference
Is there anyone can tell me how can I find out the UI pages, thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2024 07:22 AM
Hi @zhongL ,
yes, you are right, it will render the task details if you set the table as task, for other table it wont work.
UI page is not accessible to admin it kept for unchangeable.
See below explanation, hope this help you.
The code initializes a new modal dialog using GlideModal with the identifier 'UI_dialog_name'. It sets the dialog's title to 'Show title' using gm.setTitle(). The code then sets a preference for the modal, specifying the table as 'incident' with gm.setPreference('table', 'task'). Finally, it retrieves the value of the preference set earlier and stores it in the variable title using gm.getPreference('table').
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2024 06:10 AM
I think this opens the table directly. Based on SetPreference("table") it picks the table name and show the fields
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2024 07:22 AM
Hi @zhongL ,
yes, you are right, it will render the task details if you set the table as task, for other table it wont work.
UI page is not accessible to admin it kept for unchangeable.
See below explanation, hope this help you.
The code initializes a new modal dialog using GlideModal with the identifier 'UI_dialog_name'. It sets the dialog's title to 'Show title' using gm.setTitle(). The code then sets a preference for the modal, specifying the table as 'incident' with gm.setPreference('table', 'task'). Finally, it retrieves the value of the preference set earlier and stores it in the variable title using gm.getPreference('table').
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------