Siebel Developer's Reference > Siebel Web Engine Tags > Program Logic Tags >

Iterate Tag


The for-each tag iterates a tag according to the number of times that you specify. It can reduce the size of template files if SWE uses the same HTML tags, and if Siebel tags contain controls or page items that include different values for the ID parameter.

This tag uses the following format:

<swe:for-each count="integer" iteratorName="interator_name" startValue="integer"/>

where:

  • count. Specifies the number of times the tag iterates the tag contents.
  • iteratorName. Specifies the name of the iterator. You can use the following format to get the value of the iterator during the iteration:

    swe:iteratorName

    You must replace the iteratorName attribute with the actual name of the iterator. For example, if you set the value of the iteratorName to CurrentID, then you must use the following format:

    swe:CurrentID

  • startValue. Specifies the value that SWE assigns to the iterator at the start of the iteration. To do the iteration, SWE assigns this start value to the iterator, and then increments the iterator by one for each iteration.
Siebel Developer's Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.