Show TOC

Function documentationgetCurrentSelectedPath Method Locate this document in the navigation structure

 

getCurrentSelectedPath()

Returns the navigation nodes in the selected path: from the selected node up to the top level (initial nodes) of the navigation hierarchy. For example, in the following navigation hierarchy, the method returns nodes C, B and A, in that order, as shown below.

This graphic is explained in the accompanying text.

Parameters

None

Return Value

An array of the NavigationNode objects that represents the selected path. The array contains the nodes from bottom to top: the currently selected node is the first element, and the top-level node in the selected path is the last element.

Example

Syntax Syntax

  1. var pathArray = EPCM.getSAPTop().LSAPI.AFPPlugin.model.getCurrentSelectedPath();
    for(int = 0; i < pathArray.length; i++)
    {
    	pathArray[i].getTitle();
    }
    
End of the code.