MetabaseTreeList.getPathToRoot

Syntax

getPathToRoot(key, onlyKey)

Parameters

key. Key of object the path to which is to be defined

onlyKey. Indicates if the method returns only keys of objects that contain the selected object. If this parameter is not specified, only the array of keys is returned. If this parameter is set to False, the parameter returns an array of instances of the PP.Mb.Object class.

Description

The getPathToRoot method returns an array of objects, or keys of objects, into which the specified object is included.

Example

The example of method use is given in description of the MetabaseTreeList.NodeClick event.

See also:

MetabaseTreeList