Show TOC Start of Content Area

Background documentation iterateNavNodeChildren  Locate the document in its SAP Library structure

Iterates through the children of the current navigation node.

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.

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.

Variables

Name

Scope

Description

<currentNavNode> attribute

Body of tag

INavigationNode object representing the current node in the iteration.

Cooperating Tags

The tag must be nested in one of the following tags:

     iterateInitialNavNodes

     iterateNavNodeChildren

     iterateNavNodesInSelectedPath

     iterateSelectedNavNodesLevel

     launchedNavNode

     navNode

     navNodeParent

     recallNavNode

     recurseNavNodeChildren

     selectedNavNode

Example

The following recalls a navigation node (for example, the top-level node that was selected by the user) and iterates through the node’s children.

For more information on recalling a node, see recallNavNode.

<nav:recallNavNode>

    <nav:iterateNavNodeChildren>

        <nav:ifNavNodeInSelectedPath>

            <TD nowrap class="chosenTDLevel2">

                <nav:navNodeAnchor navigationMethod="byURL"
                 anchorAttributes="class='chosenOnLevel2'"/>

            </TD>

        </nav:ifNavNodeInSelectedPath>

        <nav:ifNotNavNodeInSelectedPath>

            <TD nowrap class="unChosenTDLevel2">

                <nav:navNodeAnchor navigationMethod="byURL"
                 anchorAttributes="class='unChosenOnLevel2'"/>

            </TD>

        </nav:ifNotNavNodeInSelectedPath>

        <nav:ifHasMoreIterations>

            <TD nowrap class="spacingTDPipeLevel2"> | </TD>

        </nav:ifHasMoreIterations>

    </nav:iterateNavNodeChildren>

    <TD nowrap class="spacingTDLevel2">&nbsp;</TD>

</nav:recallNavNode>

 

 

End of Content Area