Use the Repeated Region builder to repeat part of an HTML page.
Both the HTML and (the effect of) the control builders that affect controls within the block are repeated. You can repeat a section a fixed number of times. Repeated Region duplicates a block of HTML, once for each element in a list. It is very tolerant about which fields you fill in. If you specify a counter variable, it keeps track of the count and makes it available to you, whether or not you are repeating based on a count or just repeating for all the elements in a list.
This builder correctly eliminates the block if the repeat variables result in no iterations. For example, if you provide it with an empty list, or if the End Count
and Start Count
fields evaluate to From 1 to 0, nothing from inside the repeated block is displayed.
- The Start Count and End Count inputs can be used to display a set number of rows at a time. For example, if there are 20 elements in the structure and you want to display five of them at a time, you could create Next and Previous buttons that set the variables specified for the Start Count and End Count inputs to an appropriate value and then redisplay the page.
- To use the Repeated Region builder effectively, you must have all of the following elements available within the model:
- An XML variable that is populated with repeating data
- A loop variable in which to store each iteration of the data
- HTML with elements to be repeated
- Builders that display data from the loop variable onto those HTML elements (the Dynamic Table builder is often used for this purpose).
Parent topic: Builder help
About using the builder call editor
Passing arguments to actions
Overview: creating forms
Locating control builder calls on pages