Portlet Factory, Version 6.1.2


 

Repeating a region a fixed number of times

The second use of the Repeated Region builder is to repeat a fixed number of iterations. To do this, fill in the Start Count and End Count fields in the builder call editor of the builder. If you specify a value greater than the number of items in the Source List, the Repeated Region builder will re-iterate over the items until it reaches the End Count value. These values can come from the data sources (such as variables, inputs, ServiceOutputs) if you prefix the source name with an $ sign.

If you enter field an indirect reference to a variable in the Counter Variable, the current value of the count is stored in that variable. This option is available whether you are repeating over a list or repeating a fixed number of iterations. For example, if you had specified ${Variables/theCount} as a counter variable in the above example, then it would contain "1" during the first iteration (when ${Variables/theUser/Name} contained "Fred Flintstone", "2" for the second iteration, and so on. Tip: Keep the following in mind when specifying the loop and the count variables: The prefix "Variables/" is optional. If you specify " Inputs/Name" as a variable, you will end up with the value Variables/Inputs/Name.

Parent topic: Repeated Region builder


Library | Support |