ServiceNow Learning 58: Functionality of GlideNavigation-open & openPopup in ServiceNow

Shamma Negi
Kilo Sage
Kilo Sage

Hi All,

 

I have found a very good feature which runs in client side and can't be used in UI Action, Client Scripts or any Client-Side Scripting which allows you to redirect url.

 

g_navigation.open('incident_list.do?sysparm_query=active=true');
This shows how to open the list of active incidents within an instance and display the content in the current frame.
 
g_navigation.openPopup('incident_list.do?sysparm_query=active=true', 'Active Incidents', 'resizable,scrollbars,status', true);
This shows how to open the list of active incidents within a popup window called "Active Incidents", and enable the resizable, scrollbars, and status features on the window.
 
Very useful functions provided OOB.
Hope this helps you.
I hope this article helpful. Please mark it as helpful and bookmark if you like it.
 
Regards,
Shamma
 
 
Regards,Shamma Negi
3 REPLIES 3

Tejasr1
Tera Contributor

@Shamma Negi ,
Thanks for sharing  such a good feature.


Just for testing purpose I tried openPopup().I exceuted it in Javascript executer(Ctrl+shift+J) but it seems it is not displaying window name as per parameter given.
Again one question,
Can we add more features of window other than resizable, scrollbars, and status?


Thanks
Tejas

I tried this and it opened a popup for me and came as popup on same screen.

 

As of now, it provides these 4 parameters. I will share with you if I get anything extra on this.

 

Thanks for supporting.

Keep sharing and learning!!

 

Thanks,

Shamma

Regards,Shamma Negi

I can attach a small video if you want. To show how exactly it works.

 

Regards,

Shamma

Regards,Shamma Negi