This page is for testing purposes only
Attribute Validations¶
test 1
Validation of attributes is done in the methods Check_Insert___
and Check_Update___
. These two methods include only specific validation when records are inserted or updated. Validations that are common for both insert and update should be done in Check_Common___
to avoid duplicated code. This method is called from the other two.
The client calls method New__
or Modify__
with option CHECK to make the validation part without inserting or updating any rows in the database. This option solves situations with error messages, without performing any rollback of transactions, when the client tries to save information.
The example below shows how the base validation methods works. Note that these procedures are automatically generated and they contain only validation generated from the model. Any entity specific validation can be added by overriding the methods. It is also possible to change the validation behavior with different code generation properties.