Progress
Programming
Handbook
Recommended Validation Techniques
Follow the short list of recommendations below for complete validation of user input:
- Put as much of your validation expressions in the database schema with the Data Dictionary.
- For custom validation, add the VALIDATE option to the field reference in the DEFINE FRAME, FORM, or DEFINE BROWSE statements. While the VALIDATE option can legally be added in many places, placing it in one of these statements guarantees that it will be compiled into the frame or browse definition.
- Do not add fields to a frame after the initial definition (not possible for a browse). Or, if you do, use programmatic validation.
- Do not use the field:SENSITIVE = YES syntax to enable fields for input. Data Dictionary validation is not compiled into a frame when this syntax is used.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |