Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


afterSaveEvent


The event happens after the form is saved.

Return:

TypeDescription
Object

This method returns a form object

Code Block
languagejs
themeEclipse
linenumberstrue
{payload {
    view: 'default',
    tableName: 'task',
    recordId: '1000000001',
    displayValue: 'Test Task',
	}
    result: 'OK',
}

or an error.

Code Block
languagejs
themeEclipse
linenumberstrue
{payload{
    errors: ['Text error'],
	}
    result: 'ERROR',
}


Example:

Code Block
languagejs
titleon
linenumberstrue
SimpleEventBus.on('afterSaveEvent', async (obj) => {
  const savedRecordId = obj.payload.recordId;
});

afterSaveAndGetUiActionsEvent


The event happens after the form is saved and when the UI-actions are returned.

Return:

TypeDescription
Object

This method returns a form object

Code Block
languagejs
themeEclipse
linenumberstrue
{payload: {
    view: 'default',
    tableName: 'task',
    recordId: '1000000001',
    displayValue: 'Test Task',
	}
 result: 'OK',
}

or an error.

Code Block
languagejs
themeEclipse
linenumberstrue
{payload {
    errors: ['Text error'],
	}
 result: 'ERROR',
}


Example:

Code Block
languagejs
titleon
linenumberstrue
SimpleEventBus.on('afterSaveAndGetUiActionsEvent', async (obj) => {
   const savedRecordId = obj.payload.recordId; 
});

afterLoadBreadcrumbs


The event happens after the breadcrumbs are loaded.

Return:

TypeDescription
Object

This method returns a __ object.

Code Block
languagejs
themeEclipse
linenumberstrue
{
    'currentNode': {
        title: 'current Title',
        url: '/current',
    },
    'previousNode': {
        title: 'previous Title',
        url: '/previous',
    },
}


Example:

Code Block
languagejs
titleon
linenumberstrue
SimpleEventBus.on('afterLoadBreadcrumbs', async (obj) => {
   const backUrl = obj.previousNode.url; 
});

afterValidation


The event happens after the widget field validation. It is used in combination with the Validation process.

Return:

TypeDescription
Boolean

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

Code Block
languagejs
themeEclipse
linenumberstrue
{
    name: 'columnName',
    isValid: true,
}


Example:

Code Block
languagejs
titleon
linenumberstrue
SimpleEventBus.on('afterValidation', async (obj) => {
    if (obj.name === 'active' && obj.isValid) {
		...
		}

});

afterLoadWidgets


The event happens when all widgets are loaded.

Return:

TypeDescription
BooleanThe event returns the boolean value (true or false).

Example:

Code Block
languagejs
titleon
linenumberstrue
SimpleEventBus.on('afterLoadWidgets', async (obj) => {
    if (obj.name === 'active' && obj.isValid) {
		... // do something
		}   

});


Table of Contents
absoluteUrltrue
classfixedPosition
printablefalse