//DDB-FileStart //DDB-HeaderStart // File Name : Cal_Sch.DD // Class Name: Cal_Sch_DataDictionary // Revision : 6 // Version : 2 Use Windows // Basic Definitions Use DataDict.pkg // DataDictionary Class Definition Use DDvalTbl // Validation Table Class Definitions Open Cal_Sch Open Cal_Sys //DDB-HeaderEnd //DDB-SelectionStart //DDB-SelectionEnd Object Schedule_VT is a FileValidationTable Set Main_File to Cal_Sch.File_Number Set Code_Field to 1 Set Description_field to 2 Set Ordering to 1 Set Validate_State to True Set Static_State to False End_Object Class Cal_Sch_DataDictionary is a DataDictionary // Define_Fields: // This procedure is used to set up all data-dictionary rules. Procedure Define_Fields Forward Send Define_Fields //DDB-Generated-Code-Location //DDB-DefineFieldStart Set Main_File To Cal_Sch.File_Number Set Foreign_Field_Options DD_KEYFIELD To DD_AUTOFIND DD_NOPUT DD_FINDREQ Set Foreign_Field_Options DD_INDEXFIELD To DD_NOPUT DD_FINDREQ Set Foreign_Field_Options DD_DEFAULT To DD_DISPLAYONLY // Child (Client) file structure................ // External (System) file structure............. Send Add_System_File Cal_Sys.File_Number DD_LOCK_ON_ALL Define_Auto_Increment Cal_Sys.Schedule_Id To Cal_Sch.Id // Field-based properties....................... // Cal_Sch.Id // Cal_Sch.Title Set Field_Options Field Cal_Sch.Title To DD_REQUIRED //DDB-DefineFieldEnd End_Procedure // Define_Fields // Field_Defaults: // This procedure is used to establish default field values. Procedure Field_Defaults Forward Send Field_Defaults //DDB-Generated-Code-Location //DDB-FieldDefaultStart //DDB-FieldDefaultEnd End_Procedure // Field_Defaults End_Class // Cal_Sch_DataDictionary //DDB-Selection-pkg-Start #IFDEF Is$WebApp #ELSE #ENDIF //DDB-Selection-pkg-End //DDB-FileEnd