uniface.FieldErrorContext

The uniface.FieldErrorContext object is the this object for the showError and clearError web triggers. It provides access to information about the field in error, the validation error, and the DOM node that represent the field in the layout.

Functions

FieldErrorContext Functions

Function

Description

getError()

Returns the uniface.ValidationError object containing the error information.

For showError, contains the error information for the current error

For clearError, contains the error information as provided to the previous showError trigger.

getField()

Returns the uniface.Field object of the field that is in error for showError or was in error for clearError.

getBoundElement() Returns the outermost DOM node attached to the field that that is in error for showError or was in error for clearError, for the default View.

Description

The FieldErrorContext object provides the context to enable the developer to show or clear the error.

Note: This object cannot be used outside of showError and clearError web triggers.

Related Topics