1.7

Table Of Contents
Change detail line formatting based upon a data field value
An example of how to change the formatting of a line in a Dynamic Table, based upon a data
field value, is given in the following how-to: Change detail line formatting based upon a data
field value.
Resizing a Dynamic Table
To change the width of a Dynamic Table or of a column in a Dynamic Table, select it (see
"Selecting an element" on page411) and type the desired width as a percentage in the
respective field on the Attributes pane.
The height of the Dynamic Table is adjusted automatically to the amount of data added to it in
Preview mode or when generating output.
It is however possible to change the height of the rows: click in the row and type the desired
height in the respective field on the Attributes pane. All line item rows will have the same
height.
Hiding an empty Dynamic Table
The number of rows in a Dynamic Table is variable, as it depends on a detail table in the data.
You might want the Dynamic Table to be hidden when there are no data to display. There are
two ways to achieve that.
l
When creating a Dynamic Table, you can check the option Hide when empty. (See
"Creating a Dynamic Table" on page547.)
l
For an existing Dynamic Table you can check the option Hide when empty on the
Attributes pane.
HTML elements and attributes
In HTML, a Detail Table is just a normal <table> element with rows and cells (see "HTML
element: table" on page480). But apart from the native attributes of a table, row and cell
element, some data- attributes can be seen in detail tables:
l data-detail: The name of the detail table in the data, for example: data-
detail="products".
l data-repeat: The row will be repeated if it has this attribute: data-repeat="".
Page 550