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, it is optional but recommended.
- 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
, FLIPPED
, HIDDEN
, FONTPITCH
, STRETCHCOLUMNS
, STYLE
, TAG
, UNHIDABLECOLUMNS
, UNMOVABLECOLUMNS
, UNSIZABLECOLUMNS
, UNSORTABLECOLUMNS
, WANTFIXEDPAGESIZE
, WIDTH
, HEIGHT
.
Style attributes
Common: backgroundColor
, border
, fontFamily
, fontSize
, fontStyle
, fontWeight
, textColor
, textDecoration
.
Class-specific: allowWebSelection
, forceDefaultSettings
, headerAlignment
, headerHidden
, highlightColor
, highlightCurrentCell
, highlightCurrentRow
, highlightTextColor
, reduceFilter
, rightFrozenColumns
, rowActionTrigger
, showGrid
, tableType
, resizeFillsEmptySpace
,
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
TABLE
container in theLAYOUT
section. - The column data types and field properties, in the
ATTRIBUTES
section. - The field list definition to group form fields together with a screen array, in the
INSTRUCTIONS
section.
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