TABLE Containers
The TABLE container in the LAYOUT section of a form
defines the presentation of a list of records, bound to a screen array.
The content of a TABLE container is enclosed in curly braces defining the
container area, the position of the static labels and item tags is automatically detected by the
form compiler to build a graphical object displaying a list of records.
The first line of the TABLE area contains text entries defining the column
titles. The second line contains field item tags that define the columns of the table receiving the
data. This line can be repeated to define the default height of the table.
In this example, only the five first columns of the customer table are used in
the TABLE container:
4 LAYOUT
5 TABLE
6 {
7 Id Name City St Zipcode
8 [f1 |f2 |f3 |f4 |f5 ]
9 [f1 |f2 |f3 |f4 |f5 ]
10 [f1 |f2 |f3 |f4 |f5 ]
11 [f1 |f2 |f3 |f4 |f5 ]
12 [f1 |f2 |f3 |f4 |f5 ]
13 }
- Line
5declares theTABLEcontainer. - Lines
6and13delimit the table container with curly braces. - Line
7defines titles for each column. The column title line is optional, and column titles can be defined individually in theATTRIBUTESsection, with theTITLEattribute of the corresponding the field definitions. - Line
8thru12define lines with item tags (f1, f2, …), that represent column element displaying data.
Next step is to define the form fields corresponding to the item tags, in the ATTRIBUTES section.