MetaHierarchy.Levels

Syntax

Levels: Array;

Description

The Levels property determines levels array.

Example

To execute the example, create a service for working with time series, get a workbook instance from time series database, get an instance of metadata hierarchy named hie (see MetaHierarchy.ChildEls) and add the following code in the document open event handler:

console.log("Get array of levels");
var lvls = hie.getLevels();
console.log(lvls);

After executing the example the browser console displays level array:

Object { id: "LEVEL" ;

         isLeaf: false;

         k: 1;

         n: "Period";

         vis: true. }

See also:

MetaHierarchy