Link to this page
Print this page
Parent topic
:
User interface programming
User interface
/
User interface programming
Table views
Describes how to program dialogs controlling record lists.
Understanding tables views
Table views define the graphical element to display a list of records.
Defining tables in the layout
Define table views in the
LAYOUT
section of the form definition file.
Binding tables to arrays in dialogs
Controlling table rendering
Table rendering can be controlled by the use of presentation styles and table attributes.
Controlling the total number of rows
Methods are provided to set and get the number of rows in a read-only or editable list of records.
Handling the current row
Query and control the current row in a read-only or editable list of records.
Displaying column images
You can use
PHANTOM
fields and the
IMAGECOLUMN
attribute to display images in a column, to the left of the column value.
Defining actions on list columns with images
Columns in tables displaying images can trigger action events, when the user selects the image.
Built-in table features
Several implicit list handling features are provided by table views.
Summary lines in tables
Table views can display a summary line, to show aggregate values for columns.
Defining the action for a row choice
The row choice in the
DISPLAY ARRAY
dialog can be associated with a dedicated action.
Actions bound to the current row
Actions can be configured with the
ROWBOUND
attribute to depend from the current row.
Using tables on mobile devices
Table views render in a specific way on mobile devices, in order to take advantage of mobile device ergonomics.
Populating a DISPLAY ARRAY
The program array must be filled with rows to populate the
DISPLAY ARRAY
dialog.
INPUT ARRAY row modifications
Controlling row creation and deletion in an editable record list.
INPUT ARRAY temporary rows
Temporary rows can be created at the end of an editable record list.
DISPLAY ARRAY modification triggers
Using dedicated interaction blocks to allow the user to modify a read-only record list.
Cell color attributes
List controllers can display every cell in a specific color.
Multiple row selection
Multiple row selection allows the end user to select several rows in a list of records.
Examples