UI Macro GlideModal('show_list')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2018 03:54 AM
Hi All,
Can anyone please help me to understand what does GlideModal('show_list') represents(is it UI Macro, UI Page or something else)in the below code and where can I find this 'show_list'.
var gdw = new GlideModal('show_list');
gdw.setTitle(title);
gdw.setSize(750);
gdw.setPreference('table', 'incident_list');
gdw.setPreference('sysparm_query', query);
gdw.setPreference('title', 'A New Title');
gdw.render();
the above code is a part of UI Macro 'user_show_incidents' provided by ServiceNow.
Please let me know if anyone knows anything about this?
Thanks in Advance!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2018 03:59 AM
"show_list" is an UI page defined in your instance.
In this macro using GlideModal method script is calling "show_list" UI page.
GlideModal method is used to display a dialog window.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2018 03:59 AM
Hi Mahendra,
'show_list' is probably a ui page that GlideModal Renders here.
gdw.setTitle(title); // title of the rendered window
gdw.setSize(750); // size of the rendered window
gdw.setPreference('table', 'incident_list'); // passing parameter to the rendered window
gdw.setPreference('sysparm_query', query); // passing parameteer to the rendered window
gdw.setPreference('title', 'A New Title');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2018 08:07 PM
Thanks Anurag for quick reply, but I search for UI Page with name as 'show_list' and I didn't found any ui page with this name

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2018 04:00 AM
Hi Mahendra,
GlideModal is a replacement of GlideWindow and GlideDialogWindow. So show_list is a UI page.
Hope this helps.
Regards
Ujjawal