ServiceNow Learning 62: Usage of "g_navigation" more functions in ServiceNow.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2023 07:22 AM
Hi All,
I have found very interesting functions to use in Client-Side Scripting.
1. reloadWindow()
Example
This shows how to refresh the content in the current frame.
g_navigation.reloadWindow();
Reloads the current frame.
2. refreshNavigator()
Refreshes content in the navigator frame.
Example
This shows how to refresh the content in the navigator frame.
g_navigation.refreshNavigator();
3. openRecord(String tableName, String sys_id)
Redirects to a record. The record displays in the navigator frame.
Example
This shows how to open a specified incident record in the navigator frame.
g_navigation.openRecord('incident', '4e49c0e81bf198101363ff37dc4bcb8a');
I hope this article helpful. Please mark it as helpful and bookmark if you like it.
Hope this helps.
Regards,
Shamma
Regards,Shamma Negi
0 REPLIES 0