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

This was soooo helpful!! I was just wondering why I get a form instead of a list when I ask 'show_list'..... Never seen that in all my years of ServiceNow work.. haha! Thanks a lot!