UniqueContraintListener

UniqueContraintListener

Represents an event listener for validating data model's unique constraints. This listener is automatically registered in all data models.

Constructor

new UniqueContraintListener()

Source:

Methods

beforeSave(e, callback)

Occurs before creating or updating a data object and validates the unique constraints of data model.
Parameters:
Name Type Description
e DataEventArgs | * An object that represents the event arguments passed to this operation.
callback function A callback function that should be called at the end of this operation. The first argument may be an error if any occured.
Source: