TABLE container

Defines a re-sizable table designed to display a list of records.

Syntax

TABLE [identifier] [ ( attribute [,...] ) ]
{
 title [...]
[col-name   [|...]     ]
[...]
[aggr-name  [|...]     ]
}  
END
  1. identifier defines the name of the element.
  2. attribute is an attribute for the element.
  3. title is the text to be displayed as column title.
  4. col-name is an identifier that references a form field.
  5. 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:

  1. The layout of the list, with a TABLE container in the LAYOUT section.
  2. The column data types and field properties, in the ATTRIBUTES section.
  3. 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