getField()

Returns the uniface.Field object of the field that was in error.

Return=FieldErrorContext.getField()

Return Value

Returnuniface.Field object representing a field, or null if the occurrence has been deleted on the client or the server.

Exceptions

The following exceptions may be thrown:

Description

The FieldErrorContext.getField() function is used in the clearError web trigger to access the uniface.Field object for the field that was in error. Using the uniface.Field functions, you can set its properties to reverse the error reporting applied by the previous showErrorweb trigger.

If the occurrence is still available:

  • getField().getError() returns null or the updated error information that will be used in the corresponding showError and clearError triggers.
  • getField().getValue() returns the updated value of the field.

Related Topics