where is the UI pages for new GlideModal('UI_dialog_name')

zhongL
Tera Contributor

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

zhongL_0-1730882454911.png

 

 

zhongL_1-1730882454914.png

 

 

Is there anyone can tell me how can I find out the UI pages, thank you.

1 ACCEPTED SOLUTION

Runjay Patel
Giga Sage

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

-------------------------------------------------------------------------

View solution in original post

2 REPLIES 2

palanikumar
Mega Sage

I think this opens the table directly. Based on SetPreference("table") it picks the table name and show the fields

Thank you,
Palani

Runjay Patel
Giga Sage

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

-------------------------------------------------------------------------