You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 11 Next »
The event happens after the breadcrumbs are loaded.
Return:
This method returns a __ object.
{ 'currentNode': { title: 'current Title', url: '/current', }, 'previousNode': { title: 'previous Title', url: '/previous', }, }
Example:
SimpleEventBus.on('afterLoadBreadcrumbs', async (obj) => { const backUrl = obj.previousNode.url; });
The event happens when all widgets are loaded.
SimpleEventBus.on('afterLoadWidgets', async (obj) => { if (obj.name === 'active' && obj.isValid) { ... // do something } });
The event happens after the form is saved.
This method returns a form object
{payload { view: 'default', tableName: 'task', recordId: '1000000001', displayValue: 'Test Task', } result: 'OK', }
or an error.
{payload{ errors: ['Text error'], } result: 'ERROR', }
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.
{payload: { view: 'default', tableName: 'task', recordId: '1000000001', displayValue: 'Test Task', } result: 'OK', }
{payload { errors: ['Text error'], } result: 'ERROR', }
SimpleEventBus.on('afterSaveAndGetUiActionsEvent', async (obj) => { const savedRecordId = obj.payload.recordId; });
The event happens after the widget field validation. It is used in combination with the Validation process.
The event returns the boolean value (true or false).
{ name: 'columnName', isValid: true, }
SimpleEventBus.on('afterValidation', async (obj) => { if (obj.name === 'active' && obj.isValid) { ... } });
The event calls the validation of fields.
SimpleEventBus.emit('validation', fields);