NotNullConstraintListener

NotNullConstraintListener

Represents an event listener for validating not nullable fields. This listener is automatically registered in all data models.

Constructor

new NotNullConstraintListener()

Source:

Methods

beforeSave(e, callback)

Occurs before creating or updating a data object and validates not nullable fields.
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: