The event happens after the form is saved.
Return:
Type | Description | ||
---|---|---|---|
Object | This method returns a form object
or an error.
|
Example:
SimpleEventBus.on('afterSaveEvent', async (obj) => { const savedRecordId = obj.payload.recordId; }); |
The event happens after the form is saved and when the UI-actions are returned.
Return:
Type | Description | ||
---|---|---|---|
Object | This method returns a form object
or an error.
|
Example:
SimpleEventBus.on('afterSaveAndGetUiActionsEvent', async (obj) => { const savedRecordId = obj.payload.recordId; }); |
The event happens after the breadcrumbs are loaded.
Return:
Type | Description | |
---|---|---|
Object | This method returns a __ object.
|
Example:
SimpleEventBus.on('afterLoadBreadcrumbs', async (obj) => { const backUrl = obj.previousNode.url; }); |
The event happens after the widget field validation. It is used in combination with the Validation process.
Return:
Type | Description | |
---|---|---|
Boolean | The event returns the boolean value (true or false).
|
Example:
SimpleEventBus.on('afterValidation', async (obj) => { if (obj.name === 'active' && obj.isValid) { ... } }); |
The event happens when all widgets are loaded.
Return:
Type | Description |
---|---|
Boolean | The event returns the boolean value (true or false). |
Example:
SimpleEventBus.on('afterLoadWidgets', async (obj) => { if (obj.name === 'active' && obj.isValid) { ... // do something } }); |