Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# g_navigation.openPopup(url, name, features, noStack)
This method open a URL in a popup window with options to customize the popup’s behavior (e.g., resizable, scrollbars, etc.).

### Example: Open Child Incidents in a Popup

var parentIncidentID = g_form.getUniqueValue();
g_navigation.openPopup('incident_list.do?sysparm_query=parent_incident=' + parentIncidentID, 'Child Incidents', 'resizable,scrollbars,status',true);

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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var parentIncidentID = g_form.getUniqueValue();
g_navigation.openPopup('incident_list.do?sysparm_query=parent_incident=' + parentIncidentID, 'Child Incidents', 'resizable,scrollbars,status', true);
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# g_navigation.open(url, target)
This method redirects users to a new URL. You can specify the frame where the content should load (e.g., the current frame or a specific one).

### Example: Open All Active Incidents of the Caller

var callerID = g_form.getValue("caller_id");
var url = "incident_list.do?sysparm_query=active=true^caller_id=" + callerID;
g_navigation.open(url, "_blank");

This code opens a list of all active incidents for a specific caller in the current frame. It’s perfect for quickly accessing incidents tied to a particular user without leaving your current workflow.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var callerID = g_form.getValue("caller_id");
var url = "incident_list.do?sysparm_query=active=true^caller_id=" + callerID;
g_navigation.open(url, "_blank");
Loading