what is GlideModal('show_list');

chanikya
Tera Guru

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?

1 ACCEPTED SOLUTION

Swapnil Soni1
Giga Guru

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

View solution in original post

6 REPLIES 6

Azim Kazi
Giga Guru

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

 

Prasant Kumar 1
Kilo Sage

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