You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »


afterSaveEvent


The event happens after saving.

Return:

TypeDescription
Object

This method returns a form object

{
    view: 'default',
    tableName: 'task',
    recordId: '1000000001',
    displayValue: 'Test Task',
    result: 'OK',
}

or an error.

{
    errors: ['Text error'],
    result: 'ERROR',
}
on
SimpleEventBus.on('afterSaveEvent', async (obj) => {
  const savedRecordId = obj.payload.recordId;
});

afterSaveAndGetUiActionsEvent


The event happens after saving and when the UI-actions are returned.

Return:

TypeDescription
Object

This method returns a form object

{
    view: 'default',
    tableName: 'task',
    recordId: '1000000001',
    displayValue: 'Test Task',
    result: 'OK',
}

or an error.

{
    errors: ['Text error'],
    result: 'ERROR',
}
on
SimpleEventBus.on('afterSaveAndGetUiActionsEvent', async (obj) => {
  
});

afterLoadBreadcrumbs


The event happens after the breadcrumbs are loaded.

Return:

TypeDescription
Object

This method returns a __ object.

{
    'currentNode': {
        title: 'current Title',
        url: '/current',
    },
    'previousNode': {
        title: 'previous Title',
        url: '/previous',
    },
}
on
SimpleEventBus.on('afterLoadBreadcrumbs', async (obj) => {
  
});

afterValidation


The event happens after the field validation.

Return:

TypeDescription
Boolean

The event returns the boolean value (true or false).

{
    name: 'columnName',
    isValid: true,
}
on
SimpleEventBus.on('afterValidation', async (obj) => {
  
});

afterLoadWidgets


The event happens when all widgets are loaded.

Return:

TypeDescription
BooleanThe event returns the boolean value (true or false).
on
SimpleEventBus.on('afterLoadWidgets', async (obj) => {
  
});

  • No labels