Supported Events
The events emitted by the UI Events Framework are classified into the following divisions:
- Controllable Events
- Non-Controllable Events
Controllable Events
You have the option of canceling or deferring these events for a certain period of
time.
Event | Context | Description |
---|---|---|
OnBeforeSave | RecordContext | This event is triggered before the API request to commit the data to the server is initiated. You can do asynchronous operations in this callback or Cancel event. This event can wait for the completion of an asynchronous operation. |
Non-Controllable Events
These events are different from controllable events, and can't be controlled in the
same way. These events are similar to notification events in that they notify the
client when an event occurs in the application.
Events | Context | Description |
---|---|---|
TabOpen | GlobalContext | This event is initiated when a browser tab or the MSI tab gets opened with the Service Center application. |
TabClose | GlobalContext | This event is initiated when a browser tab or the MSI tab gets closed with the Service Center application. |
TabChange | GlobalContext | This event is initiated when a browser tab or the MSI tab happens with the Service Center application. |
ContextOpen | GlobalContext | This event is initiated when an object is opened in the UI. For example, an SR is opened. |
DataLoad | RecordContext | This event is initiated when data is loaded. For example, after fetching SR object data. |
ContextClose | GlobalContext | This event is initiated when an object is closed in the UI. For example, an SR is closed. |
FieldValueChange | RecordContext | This event is initiated when a field value change occurs. For example, an SR title is changed. |
OnAfterSave | RecordContext | This event is initiated after saving an open object in the UI. For example, after saving an SR. |
Operations
You can use extensibility operations to execute specific tasks in the Service Center
application. The operations that are supported are listed in the following table:
Operation | Syntax | Description |
---|---|---|
PopOperation | GlobalContext | To pop a new browser tab, MSI tab, or any custom page in any desired tab. |
FocusTab | TabContext | To focus on a particular MSI tab or browser tab. |
CloseTab | TabContext | To close a particular MSI tab or browser tab. |
InvokeServiceConnection | GlobalContext | To invoke a service defined in the application and fetch its response. |
SetFieldValue | RecordContext | To update the value of a particular field. For example, update the Title field of SR. |
GetFieldValue | RecordContext | To fetch the current value of a field.For example, to get the current value of the Title field of SR. |
SaveRecord | RecordContext | To save an open record. For example: Save an SR form from edit page or save an SR from create form. |