Skip to content

External Validation Tables

In most cases, your custom validation tables will be used by a single Data Dictionary and will reside with the Data Dictionary’s class package. In some cases, you may wish to make a validation table object global. This makes the one object available to any Data Dictionary that requires its validation services. In such a case, the same list of valid items and descriptions is available to all data dictionaries. Global validation-table objects must be placed outside the Data Dictionary subclass definition. You are advised to place the external Validation Table in your Data Dictionary using the Use command.

// StatusValueTable.pkg
Use DDValTbl.pkg

Object oStatusTable is a CodeValidationTable
    Set Type_Value to "Status"
End_Object
// End of file

// Customer_DataDictionary.pkg
Use StatusValueTable.pkg // creates object named oStatusTable

Class Customer_DataDictionary is a DataDictionary
    Procedure Construct_Object
        Set Field_Value_Table field Customer.Status to oStatusTable
    End_Procedure
End_Class

In the above example, the same physical validation object will be available to all objects.

See Also

Using Validation Tables