Service Studio 6.0 Help
About the Table Records Widget
The
Table Records
widget allows you to display and edit multiple records of entities,
structures
or a combination of the two. In the web screen, this widget is inserted
inside a
Table
and, therefore, you can use the Table
toolbar to add and remove columns. The number of rows depends on the
number of records. You can also use the List
Records widget to show multiple records of entities and/or structures.
Contents of the widget
To define the contents of the widget, you can:
Drag the complete entity and/or structure and all its attributes are placed in the widget, except the identifier and entity references.
Drag individual entity and/or structure attributes.
To place the identifier and
entity references, simply explicitly drag them.
Layout of the widget
The layout of this widget follows these rules:
Each record of the entity or structure corresponds to one row in this widget.
Each attribute corresponds to one column.
For each attribute, there is one column with n+1 rows with the following semantics:
First row: The name of the attribute that corresponds to the Label property, if any, or the name of the attribute. You can apply styles to this row, by setting the Header style property. How?
Other rows: The value of the attribute for each record is displayed as a Expression widget and, therefore, you can use the Expression editor to modify it (they can optionally be presented using one of the input widgets to allow editing). You can have different styles in odd and even lines, by setting the Odd Line style property and Even Line style property. How?
Iterating the widget
The entity and/or structure records that you want to display are defined in the Source Record List property of this widget, which must be of the Record List type. Each record of this record list is displayed on a different line. The first record that is displayed on the widget corresponds to the Start Index position on the record list and the number of records displayed depends on the Line Count property.
To iterate over the Source Record List, you have to update the Start Index property for each iteration, by using the Line Count and Start Index runtime properties of the Table Records widget. See Table Records Widget Runtime Properties.
This widget has Ajax capabilities. Learn more About
Rich Web Screens using Ajax.
See Also
Table Records Properties | Table Records Runtime Properties | Edit Records | Apply Web Styles