TABLE container
Defines a re-sizable table designed to display a list of records.
Syntax
TABLE [identifier] [ ( attribute [,...] ) ]
{
title [...]
[col-name [|...] ]
[...]
[aggr-name [|...] ]
}
END
- identifier defines the name of the element.
- attribute is an attribute for the element.
- title is the text to be displayed as column title.
- col-name is an identifier that references a form field.
- aggr-name is an identifier that references an aggregate Field.
Form attributes
AGGREGATETEXT,
COMMENT, DOUBLECLICK, HIDDEN, FONTPITCH, STYLE,
TAG, UNHIDABLECOLUMNS, UNMOVABLECOLUMNS, UNSIZABLECOLUMNS, UNSORTABLECOLUMNS, WANTFIXEDPAGESIZE, WIDTH, HEIGHT.
Style attributes
Common: backgroundColor, border, fontFamily, fontSize, fontStyle, fontWeight, localAccelerators, showAcceleratorInToolTip, textColor, textDecoration.
Class-specific: allowWebSelection, forceDefaultSettings, headerAlignment, headerHidden, highlightColor, highlightCurrentCell, highlightCurrentRow, highlightTextColor, resizeFillsEmptySpace, reduceFilter, rightFrozenColumns, rowActionTrigger, showGrid, summaryLineAlwaysAtBottom, tableType.
Usage:
The TABLE container defines a list view element in a grid-based layout.
To create a table view in a grid layout, define the following elements in the form file:
- The layout of the list, with a
TABLEcontainer in theLAYOUTsection. - The column data types and field properties, in the
ATTRIBUTESsection. - The field list definition to group form fields together with a screen array, in the
INSTRUCTIONSsection.
For more details about this item type, see TABLE item type.
Example
SCHEMA videolab
LAYOUT ( TEXT="Customer list" )
TABLE ( TAG="normal" )
{
[c1 |c2 |c3 |c4 ]
[c1 |c2 |c3 |c4 ]
[c1 |c2 |c3 |c4 ]
[c1 |c2 |c3 |c4 ]
}
END
END
TABLES
customer
END
ATTRIBUTES
EDIT c1 = customer.cust_num, TITLE="Num";
EDIT c2 = customer.cust_name, TITLE="Customer name";
EDIT c3 = customer.cust_cdate, TITLE="Date";
CHECKBOX c4 = customer.cust_status, TITLE="Status";
END
INSTRUCTIONS
SCREEN RECORD custlist( cust_num, cust_name, cust_cdate, cust_status )
END