ComponentOne True DataControl 8.0
Record Validation

Record-level validation occurs when True DataControl is repositioned to a different record and when the modified record is posted to the database. True DataControl checks the record-level constraints, evaluates the constraint expressions.

If at least one constraint expression evaluates to False, True DataControl cancels the update operation or record position move. So it never posts invalid data to database, and the user is not allowed to leave a record with invalid data in it.

On a record constraint failure, True DataControl fires the Error event setting its Source argument to “TData” and its ErrorNumber argument to 2001 - Record constraint violation. You can cancel the standard True DataControl error handling by setting the fCancelDisplay argument to True in the Error event procedure. If it is not canceled, a standard message box appears, with the error description, which is the result of the MessageExpression evaluation. The caption of this message box can be customized using the ErrorMsgCaption property.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback