Repeating Tables In Richtext

Top  Previous  Next

The rows of tables in Rich text element can be repeated in the same manner as panel and form elements are repeated. See repeating container elements.

To open the Repeat dialog where you can define the repeat parameters for a richtext table:

1.Switch to edit mode by pressing to F2.
2.Focus on the richtext element where the table resides.
3.Right click into the table whose rows will be repeated.
4.Choose "Table Repeat" option from the context menu.

 

When the "Table Repeat" option is selected from the context menu the following dialog will appear where you can define repeat parameters.

RepeatingTablesInRichtextz

Parameters

Display Table if

Optional parameter. When defined it is used as the pre-condition for displaying the entire table. The table will be shown if the condition specified with this parameter is satisfied.

For each

This parameter is used to query the XML nodes for which the rows of the table will be repeated. The usage is the same as "Repeat | For Each" property of container elements.

Sort

This parameter is used to sort the XML nodes returned by the query which is defined with for-each parameter. The usage is the same as "Repeat | Sort" property of container elements.

Parameters for inner repeats

This parameter is used to create xsl variables assigned to specified XML nodes which can then be used for repeating the rows of the inner tables. The usage is the same as "Repeat | Parameters For Inner Repeats" property of container elements.

Display rows

You should insert a definition record for each type of row you want to repeat. In each definition record you can define

When: the precondition for row repetition. If this field is left blank the row is repeated unconditionally.

Starting from: The sequence number of the first row of the rows to be repeated

Count: The number of the rows to be repeated

The last record is reserved for otherwise clause and becomes effective when "Starting from" and "Count" fields have values greater than "0".

Repeat Instruction

This field can be used to copy and paste repeat definitions between the tables. Paste the definition copied from another table and click on expanddefinition button to expand it.

 

See Usage Examples.