Global events are used as triggers that execute different client scripts. These scripts may call various actions, for example, to open a created record. See SimpleEventBus for more information.
The event occurs after the comment tab in the Activity Feed widget has changed.
Return:
Type | Description | |
---|---|---|
Object | This event returns a widget with the previous value and the current value of the tabs.
|
Example:
SimpleEventBus.on('activityFeedCommentTabChanged', async (obj) => { const previousTab = obj.previousTab; }); |
The event occurs after the breadcrumbs are loaded.
Return:
Type | Description | |
---|---|---|
Object | This event returns node URLs.
|
Example:
SimpleEventBus.on('afterLoadBreadcrumbs', async (obj) => { const backUrl = obj.previousNode.url; }); |
The event occurs when all widgets are loaded.
Return:
Type | Description |
---|---|
Boolean | The event returns a boolean value (true or false). |
Example:
SimpleEventBus.on('afterLoadWidgets', async (obj) => { if (obj.name === 'active' && obj.isValid) { // do something } }); |
The event occurs after a form is saved.
Return:
Type | Description | ||
---|---|---|---|
Object | This event returns a form object
or an error.
|
Example:
SimpleEventBus.on('afterSaveEvent', async (obj) => { const savedRecordId = obj.payload.recordId; }); |
The event occurs after a form is saved and when the UI-actions are returned.
Return:
Type | Description | ||
---|---|---|---|
Object | This event returns a form object
or an error.
|
Example:
SimpleEventBus.on('afterSaveAndGetUiActionsEvent', async (obj) => { const savedRecordId = obj.payload.recordId; }); |
The event occurs after the widget field validation. It is used in combination with the validation event.
Return:
Type | Description | |
---|---|---|
Boolean | The event returns a boolean value (true or false).
|
Example:
SimpleEventBus.on('afterValidation', async (obj) => { if (obj.name === 'active' && obj.isValid) { // do something } }); |
The event calls the validation of fields.
Return:
Type | Description |
---|---|
List of fields | The event returns the list of fields. |
Example:
SimpleEventBus.emit('validation', fields); |