2020.1

Table Of Contents
1. Select the row (see "Selecting an element" on page608).
2.
Change the row's Repeat attribute on the Attribute pane from None to the desired detail
table. Usually this will be the detail table that is one level higher than the one that
contains the field for which the subtotal must be calculated.
3. Proceed with step 5 in "Adding a row to the header or footer of a Dynamic Table" on
page799. The Sum drop-down will now only show the names of fields that occur in the
specified detail table and in its nested detail tables.
Mixing text and data in one cell
By default, each Dynamic Table cell that is based on a data field shows a placeholder. For
example: @CompanyName@ refers to a data field named CompanyName. However, unlike
other placeholders, these placeholders are not used as selector.
Instead, if a cell has the data-field or data-sum attribute, the software will replace the entire
contents of that cell that with a value: the current value of the data field, or a running total,
respectively. (For information about data- attributes see: "HTML: table element and data-
attributes" on page806).
Any text that was added in Design mode will disappear.
In order to mix data and text in a cell, you should remove the data-field or data-sum attribute,
respectively, from the cell itself and then put that attribute on an element inside the cell.
Here's how to do that.
1.
In the Workspace, open the Design tab.
2. Select the cell (see "Selecting an element" on page608).
3.
On the "Attributes pane" on page1024, set Field or Sum to None.
4. Type text in the cell, before and/or after the placeholder.
5.
Select the placeholder, right-click it and select Wrap in Span...
6. Select the new Span element.
7.
On the "Attributes pane" on page1024, set Field or Sum to the desired data field.
8. Reapply the format if needed (see "Formatting values in a Dynamic Table" on the next
page).
Changing content based on a value
Changing the contents of a cell or row in a Dynamic Table, based on the value of a data field,
requires a script. See "Using scripts in Dynamic Tables" on page876.
Page 802