Siebel Tools Reference > Physical User Interface Layer > Understanding Siebel Tags >

Iterators


Iterator tags specify the number of times the tag should iterate its contents. For example, the swe:for-each tag allows you to reduce the size of the template files where the same HTML and Siebel tags are used with controls or page items with different values for the id parameter:

<swe:for-each count="x" iteratorName="yyyy" startValue="z"/>

Other iterator tags include swe:for-each-row, swe:for-each-child, swe:for-each-node, swe:for-each-indent, swe:for-each-value.

The attributes of the swe:for-each tag are as follows:

In the section enclosed by the swe:for-each tag, references to the current value of the iterator is through the name specified in the iteratorName attribute. For example, if you set the value of the iteratorName to "CurrentID," then you can get the value of the iterator using the syntax swe:CurrentID. You can also reference a value that is an increment over the current value as swe:CurrentID+x. The fragment below illustrates this usage:

<swe:for-each startValue="2301" count="50" iteratorName="currentId">

<swe:control id="swe:currentId">

.

.

</swe:control>

<swe:control id="swe:currentId+100" />

</swe:for-each>


 Siebel Tools Reference
 Published: 20 October 2003