14. ABF Development Example : Another User-Specified Frame : Define the NewOrder Frame : Create a Record Type
 
Share this page                  
Create a Record Type
In NewOrder, the array cust_array is based on the record type cust_record. Cust_record has as its attributes the simple data types, c_name (char) and c_number (integer).
To create this record type
1. From the Edit a USER Frame Definition frame, select End to exit to the Edit an Application frame.
2. Select the Globals operation to display the Create or Edit Global Components pop-up menu.
3. Highlight RecordTypes and choose Select.
4. You see the Edit Application Record Type Definitions frame. Select Create to display the Create a Record Definition pop‑up.
5. In the Name field, enter cust_record.
6. In the Short Remark field, optionally enter a brief description, such as Record structure for customer name and number. This stage is shown in the preceding figure.
7. Select OK to create the record type.
8. The Edit a Record Type Definition frame appears. In its fields are the values you entered in the Create a Record Definition pop-up. Cust_record has two attributes, c_name and c_number. To create the attributes of the record, select Create to display the Create a Record Attribute Frame.
a. To create c_name, complete this frame. Enter the data type char(20) and the optional Short Remark, Customer Name.
b. Select OK. You return to the Edit a Record Type Definition frame, where the attribute is displayed in the table field.
c. Repeat the procedure for the attribute c_number, which has a data type smallint and the optional Short Remark Customer number.
9. After creating the attributes, select End to return to the Edit Application Record Type Definitions frame, where the record type you created appears in the table field. Select End.