Table of Contents Previous Section


WORepetition

Synopsis

WORepetition {list=anObjectList; item=anIteratedObject; [index=aNumber;] [identifier=aString;] ... };

WORepetition {count=aNumber; [index=aNumber;] ... };

Description

A WORepetition is a container element that repeats its contents (that is, everything between the <WEBOBJECT...> and </WEBOBJECT...> tags in the template file) a given number of times. You can use a WORepetition to create dynamically generated ordered and unordered lists or banks of check boxes or radio buttons.

list
Array of objects that the WORepetition will iterate through.

item
Current item in the list array.

index
Index of the current iteration of the WORepetition.

identifier
Value used to uniquely identify this item in the list array. Typically it is the primary key of an enterprise object.

count
Number of times this element will repeat its contents.

Examples

Nested lists
Radio buttons

Table of Contents Next Section