UI Macro GlideModal('show_list')

Mahendra RC
Mega Sage

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.

UI Macro SS.PNG

Please let me know if anyone knows anything about this?

Thanks in Advance!!

10 REPLIES 10

Mihir Mohanta
Kilo Sage

"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.


Anurag Tripathi
Mega Patron
Mega Patron

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');


-Anurag

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


Ujjawal Vishnoi
Mega Sage
Mega Sage

Hi Mahendra,



GlideModal is a replacement of GlideWindow and GlideDialogWindow. So show_list is a UI page.



Hope this helps.



Regards


Ujjawal