Repetitive Block
Very important template component making document generation more dynamic. You can prepare a block for one item and let it be replicated as many times as there are items in input data array. Items in a list and rows or columns in a table are just few examples.
Configuration
Select block or navigate cursor into block's content. Click on Block Repetition button from editor's toolbar and configuration window will appear. If it's not possible to select exact element you want to repeat, select a nested element and use Select parent block button until you reach it.
Data (expression)
Define array field name or formula using expression language to be evaluated as array of items. Selected block will be repeated based on array items count and every block's data context will be corresponding item.
Examples:
LineItems
- array field expression to repeat LineItem block
for(1, 10)
- expression to generate an array containing numbers from 1 to 10
Was this article helpful?
Yes
No