The ribbon With the launch of XpressDox low code, or version 14, the Repeater Question is now available directly from the ribbon. When to use a repeater: Use this when you as the template author do not know up front the number of items the user will need
Here is a consolidated list of all commands regarding the handling of repeating data. Click on each command for a more detailed article. ForEach() Repeat data elements and/or text. «ForEach(Party)»«Name»«End()» last() Get the first or last item in the set of repeated elements. «Party[position() = last()])»«Name»«End()» Ordinal() Get the
Repeating data elements presents a challenge to the template author, especially in formulating sentences and descriptions where the number of parties or invoice items or other repeating data is unknown at the time of authoring the template. This recipe in the Cookbook demonstrates how XpressDox meets this challenge.
The central issue with repeating data is that the number of repeated data elements is not known at the time the template is authored, and so XpressDox offers the ForEach, List and Ordinal commands as a way of processing a variable number of repeated data elements.
If commands are called ‘block commands’ because they are terminated with a separate
End command. Between the start and end of the block there are other Merge Fields. There is a special behaviour related to block commands to help with eliminating unwanted empty paragraphs when the start and end appear on different paragraphs.
When users enter repeating data into your XpressDox template, you can manage the number of occurrences of a repeater. “Repeaters” are otherwise called “complex elements” in XML, but are essentially items through which you can iterate using a «ForEach()» in the template. An example would be My children are: «ForEach(Child)» Name:
Problem Statement Suppose you have an application which requires that one or more parties sign a suretyship document, with the requirement that each party signs their own document, not that they all sign the same document. The first thing to do is set up the suretyship template, with the relevant