This client-side class contains methods that allow performing various URL transitions. This class has no constructor; methods can be accessed using the s_goglobal object.
s_go.open(url, target, callback)
This method allows going through the URL.
It is not recommended to pass absolute URL as a parameter value for this method, because it leads to scalability issues. Define paths in a relative way, like shown below.
Not recommended
Recommended
https://instance.example.com/record/task
/record/task
Parameter(s):
Name
Type
Mandatory
Default Value
url
String
Y
N
target
String
N
N
callback
Function
N
N
Return:
Type
Description
Void
This method does not return a value.
Example:
open
s_go.open('/list/user');
If you need to open URL in new window, pass the '_blank' value to the target parameter, also, you need to pass the newWindow parameter into your callback function. Check the example below for more information:
open
s_go.open('/list/user', '_blank');
open
s_go.open('/record/task?field_parent_id=' + s_form.getUniqueValue(), '_blank', (newWindow) => {
s_i18n.getMessage('Create a new subtask', (response) => {
newWindow.s_form.addInfoMessage(response, 5000);
});
});
s_go.openList(table, query)
This method allows opening the list of the specified table.
This method allows to check if the form has been changed. If the form has been changed but not saved, a pop-up window appears notifying that the changes will be lost. As a result of the method, the user will be redirected to the previous page.