IsEditError property: Rowset class
Description
This property is True if an error has been found on any field in any record in any row or child rowset of the current rowset after executing the ExecuteEdits method on either a message object or a record object. This property can be used with the Field Class properties EditError (to find the field that’s in error), MessageSetNumber and MessageNumber to find the error message set number and error message number.
This property is read-only.
Example
The following is an example showing how IsEditError, along with ExecuteEdits could be used:
&REC.ExecuteEdits();
If &ROWSET.IsEditError Then
For &I = 1 to &ROWSET.ActiveRowCount
&ROW = &ROWSET(&I);
For &J to &ROW.RecordCount
&REC = &ROW.GetRecord(&J);
For &K = 1 to &REC.FieldCount
If &REC.GetField(&K).EditError Then
LOG_ERROR();
/* application specific call */
End-If;
End-For;
End-For;
End-For;
End-If;