Show TOC Start of Content Area

Background documentation recurseNavNodeChildren  Locate the document in its SAP Library structure

Iterates recursively through all the nodes below the current node, performing a depth-first traversal through the navigation tree, starting with the current 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

depthLimit

No

The number of levels through which to iterate.

currentDepth

No

The name of the Java variable to create for holding the Byte object that equals the current depth within the recursive iteration.

The first level of the iteration equals 1.

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

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.

Variables

Name

Scope

Description

<currentNavNode> attribute

Body of tag

INavigationNode object representing the current node in the iteration.

<currentDepth> attribute

Body of tag

A Byte object representing the current depth within the recursive 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 creates a detailed navigation iView by starting a recursive iteration of all the children nodes of the node in the selected path on the specified level. The current depth is used in the TR tag to create the required indent for that level.

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

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

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

 

                ...

 

        <TR Style="{text-indent:<%=((currentDepth.byteValue()-1) * 16)+10%>px}">

            <TD Class="lightDTNCell">

 

                ...

 

            </TD>

        <TR/>

        </nav:recurseNavNodeChildren>

    </nav:iterateSelectedNavNodesLevel>

</TABLE>

Example

·        doNotRecurseNavNodeChildren

End of Content Area