eva/3 Application BuilderDeveloping eva/3 ApplicationsWorking with FormsTable Beans 

Defining Table Columns

The property TableColumnDefinition of a SScrollTable can only be used when the property TableSoure is set. Here the propertries depending the several table columns can be set.(s. fig. 199 ).

Fig. 199: SScrollTable Database Attributes
Fig. 199: SScrollTable Database Attributes

Empty Clears the current settings
Commit Saves the current settings
Insert column Inserts a new column in the table definition
Delete column Removes the selected column from the table definition
Move up column Moves the selected column up in the table definition
Move down column Moves the selected column down in the table definition

The upper table in the window Table definition has the following funtionaity:

Description Defines the text of the column header
Minimal with Defines the minimal width of the column
Preferred width Defines the preferred width of the column
Maximum width Defines the maximum width of the column
Background Defines the background color of the column
Coulmn span Allows to specify a column span over more than one column. If the columns span is set to 2, the column will overlay the next one. If the column span contains a negative value, the previous column will be overlayed.

If an expression is used the column span can be specified value dependent. If a value from the current record should be used for caluclate the column span, the name of the column can be used as reference. For example: =iif([id]==0;2;1) extends the column span for these row which has the value 0 in the column named id.

Fig. 200: SScrollTable Table Properties
Fig. 200: SScrollTable Table Properties

By selecting a row in the table definition, additional settings can be made in the lower part of the window.

Field Defines the column content. The column contan can be a column name or a expression.
Description Will be placed before the content as prefix.
Editor Allows the use of TBeans in table columns to edit them
Sort order Allows to sort the data depending on the table.
Editable Defines whether the table column is editable.

There can be more than one columns from theSTableElement part of a column in the SScrollTable. In order to reach this, additional column definitions can be added by clicking the button New row (s. fig. 120 ). So more editors will be assigned to a cell. The data keeps editable by the user.

New row Adds a column definition
Delete row Removes the selected column definition
Move up row Moves the selected column up in the column definition
Move down row Moves the selected column down in the column definition
Editor properties Opens the Properties dialog to edit additional settings of the inserted TBeans