- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2020 05:01 AM
Hi,
can any one help me what is
new GlideModal('show_list');
what is the use of it, i didn't find show_list in UI Pages any where . what is the purpose of this useing?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2020 05:08 AM
Hi chanikya,
show_list is actually nothing. It's ignored because the real param that matters here is "table".
GlideModal uses the RenderInfo processor and that looks at the preference name "table" to decide what UI page to show. In this case table = incident_list
The platform then decides to use the list template because it's a table + list suffix. Don't worry if this is confusing because it's all hidden away in the inner workings of the platform.
The real thing to take away from this is:
var m = new GlideModal("some_ui_page");
m.render(); // Will render a ui page
var m = new GlideModal("some_ui_page");
m.setPreference('table', 'incident_list');
m.render(); // Will render the incident list
**Please mark correct or helpful. If this helps you**
Thanks
Swapnil Soni

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2020 05:12 AM
Hello chanikya,
GlideModal is a replacement of GlideWindow and GlideDialogWindow. So show_list is a UI page.
"show_list" is an UI page defined in your instance.
show_list is actually nothing. It's ignored because the real param that matters here is "table".
GlideModal uses the RenderInfo processor and that looks at the preference name "table" to decide what ui page to show. In this case table = incident_list
The platform then decides to use the list template because it's a table + list suffix. Don't worry if this is confusing because it's all hidden away in the inner workings of the platform.
The real thing to take away from this is:
var m = new GlideModal("some_ui_page");
m.render(); // Will render a ui page
var m = new GlideModal("some_ui_page");
m.setPreference('table', 'incident_list');
m.render(); // Will render the incident list

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2020 05:21 AM
Hi,
Please follow the below link :-
https://developer.servicenow.com/dev.do#!/reference/api/madrid/client/c_GlideModalClientSideV3API
If i was able to solve your query, please mark my answer correct and helpful.
Thanks & Regards
Prasant kumar sahu