Skip to content

Commit 286befe

Browse files
authored
Create README.md
1 parent ceccf78 commit 286befe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# g_navigation.openPopup(url, name, features, noStack)
2+
This method open a URL in a popup window with options to customize the popup’s behavior (e.g., resizable, scrollbars, etc.).
3+
4+
### Example: Open Child Incidents in a Popup
5+
6+
var parentIncidentID = g_form.getUniqueValue();
7+
g_navigation.openPopup('incident_list.do?sysparm_query=parent_incident=' + parentIncidentID, 'Child Incidents', 'resizable,scrollbars,status',true);
8+
9+
This code opens a popup window to display all incidents that are children of a specific parent incident. It’s great for visualizing relationships between incidents without cluttering the main interface.

0 commit comments

Comments
 (0)