Creating a CodeValidationTable Object

The CodeValidationTable is the most powerful and easiest to use type of Validation Table. When you use a CodeValidationTable object, your validation values will be loaded from the CodeMast table. This table contains sets (or types) of validation values. By specifying the type, all codes and descriptions for that type are made available, and no others. The data in this table can be maintained by using the Studio’s Data Dictionary Modeler or the Code Maintenance program.

Object oStatusTable is a CodeValidationTable

    Set Type_Value to "Status"

End_Object

The following code table will define a non-static table for all Status types. The display objects will be titled “Customer Status Types”, and the list will not be used for validation.

Object oStatusTable is a CodeValidationTable

    Set Type_Value to "Status"

    Set Static_State to False

    Set Validate_State to False

End_Object

It is important to note that the DEOs require no changes to support any of the above validation tables. These DEOs simply ask for data and request validation services from their Data Dictionary. They don’t “care” how this information is obtained. This makes validation tables extremely flexible and powerful.

See Also

Using Validation Tables