Levels: Array;
The Levels property determines levels array.
To execute the example, create service for working with time series, get workbook instance from time series database and get an instance of metabase hierarchy named hie (see MetaHierarchy.ChildEls) and add the following code in the handler that processes document opening:
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: