IMetaDictionaryInstance.OpenHierarchy

Syntax

OpenHierarchy(Hierarchy: IMetaHierarchy): IMetaHierarchyInstance;

Parameters

Hierarchy - open hierarchy of elements.

Description

The OpenHierarchy method opens a hierarchy of time series database elements.

Example

Executing the example requires a time series database with the OBJ_FC identifier.

Sub Main;

Var

Mb: Imetabase;

Rubr: IMetabaseObject;

RubrInst: IRubricatorInstance;

Facts: IMetaDictionaryInstance;

Hierarchy: IMetaHierarchy;

HInstance: IMetaHierarchyInstance;

Begin

Mb := MetabaseClass.Active;

Rubr := MB.ItemById("OBJ_FC").Bind;

RubrInst := Rubr.Open(Null) As IRubricatorInstance;

Facts := RubrInst.GetDictionary(RubricatorDictionary.Facts);

Hierarchy := Facts.Dictionary.DefaultHierarchy;

HInstance := Facts.OpenHierarchy(Hierarchy);

End Sub Main;

After executing the example, the HInstance variable contains open default hierarchy for database time series.

See also:

IMetaDictionaryInstance