Show TOC Start of Content Area

Background documentation iterateSelectedNavNodesLevel  Locate the document in its SAP Library structure

Iterates through all the sibling nodes of the node in the selected path on a specified level.

For example, if the user selects Content Administration  Users  Create User, and the tag specifies level 2, then the tag iterates through all the nodes on the same level as the Users node (that is, the Users node and its siblings).

During each iteration of the tag, a different node is exposed in the body of the tag, either via a cooperating tag that accesses the current node in the iteration or the scriptlet variable defined by the currentNavNode attribute.

For more information about the selected path, see Glossary.

Attributes

Name

Mandatory

Description

currentNavNode

No

The name of the Java variable to create for holding the INavigationNode object for the current node in the iteration.

The variable is accessible in scriptlets in the body of the tag.

direction

No

Indicates in what direction to iterate. The attribute can have the following values:

·         forward (default): Iterate from the first to the last node.

·         backward: Iterate from the last to the first node.

level

Yes

The level in the navigation tree whose nodes to include in the iteration. Only the children of the selected node on the level above are included.

Variables

Name

Scope

Description

<currentNavNode> attribute

Body of tag

INavigationNode object representing the current node in the iteration.

Example

The following creates a detailed navigation iView by starting an iteration of all the sibling nodes of the node in the selected path on level strStartLevel.

<TABLE Width='100%' Class="lightDTNTable">

    <nav:iterateSelectedNavNodesLevel level="<%=strStartLevel%>"
     currentNavNode="currentRoot">

        <nav:recurseNavNodeChildren currentDepth="currentDepth"
         currentNavNode="currentNavNode">

 

      ... Display DTN nodes

 

        </nav:recurseNavNodeChildren>

    </nav:iterateSelectedNavNodesLevel>

</TABLE>

See Also

·        iterateNavNodesInSelectedPath

·        selectedNavNode

 

 

End of Content Area