Repeating Rows

Top Previous Topic Next Topic  Print this topic

Repeating Rows are table rows that are repeated for a set of nodes from the source XML.

Example:

A collection of CDs is considered as input XML file. A row for each CD's title, artist and year of appearance will be created using Repeating Rows.

 

Steps to insert a Repeating Row:

 

1. The table must have one row, which will be converted to a repeating row, and a header.

 

2. After the table is inserted, the user must right-click on the row and select Convert to Repeating Row.

 

3. The Edit Expression dialog will be displayed. The path to the set of nodes that will be repeated must be selected (in this example, to cd node) and the OK button clicked.

 

repeating_rows

 

4. The elements that will be repeated for each CD (in this example title, artist and year) must be dragged and dropped into the Repeating Row's cells.

Also, the fields can be inserted by selecting the Field button located in the Dynamic Content group located under the Insert tab.

 

Below, the results from Design View and PDF are displayed.

 

Design View:

 

repeating_rows4

 

PDF:

 

repeating_rows3

 

 

Note:

In Design View mode, Repeating Rows are displayed with a green background (when the cursor is placed in the table row itself) and with the XPath of the node for which they are repeated.

 

Examples on how to change table row's background and use grouping dynamic data in tables can be found under the How To... section.