OLConnect 2025.1 If I understand correctly, I can right click a section on the print and click on clone. Wizard appears and I setup my section clone. Then I create a dynamic table and fill variables from the data model (details table). ( … “name”:“asdf”, “detailTable”:[ …] …)
This method works but it lists all the details tables instead of 1 section (page) per detail table. Any idea if I am in the right track or still I need to use the old way and use the @placeholders@ along with a script to replace them?
Hello @hish ,
Welcome to our online community!
The easiest fix is to view the print section in source mode and make sure that the <tr>
-elements inside the <tbody>
-element does not contain the attribute data-repeat
.
Instead of inserting a Dynamic Table it would be better to insert a Table and to drag-and-drop the fields from the detail table in the Data Model pane into the necessary cells of the inserted Table. When doing so you will get something like this (in source mode):
<table cellpadding="0" cellspacing="0" style="width: 100%;">
<thead>
<tr>
<th style="text-align: left; width: 50%;">First name</th>
<th style="text-align: left; width: 50%;">Last name</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{firstName}}</td>
<td>{{lastName}}</td>
</tr>
</tbody>
</table>
Instead of:
<table cellpadding="0" cellspacing="0" style="width: 100%;" data-expander="2019">
<thead>
<tr>
<th style="text-align: left; width: 50%;">First name</th>
<th style="text-align: left; width: 50%;">Last name</th>
</tr>
</thead>
<tbody>
<tr data-repeat="details">
<td>{{firstName}}</td>
<td>{{lastName}}</td>
</tr>
</tbody>
</table>
(post deleted by author)