Metabase.getFullPath

Syntax

getFullPath (objKey, callback);

Parameters

objKey. Key of the object, which parent objects must be requested.

callback. Callback procedure.

Description

The getFullPath method requests data about parent directories for the specified object.

Example

To execute the example, the HTML page must contain a repository connection object named mb (see Example of Creating the Navigator Component). The page must contain an object with the 2033 key. Send a query to the server to get information about parent directories for the object with the specified key:

mb.getFullPath(2033, function (sender, args) {
    var parentObjects = JSON.parse(args.ResponseText).GetObjectsResult.objects;
    console.log(parentObjects)
});

After executing the example the browser console displays an array of parent directories for the specified object. If the specified object is container, an array of parent and child object is output.

See also:

Metabase