IMetaHierarchyLevel.Attributes

Syntax

Attributes: IMetaAttributesSet;

Description

The Attributes property returns attributes set of a hierarchy level.

Example

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

Sub Main;

Var

Mb: IMetabase;

Rubr: IRubricator;

Facts: IMetaDictionary;

i, j: Integer;

Hierarchy: IMetaHierarchy;

HLevels: IMetaHierarchyLevels;

HLev: IMetaHierarchyLevel;

Att: IMetaAttribute;

AttsSet: IMetaAttributesSet;

Begin

Mb := MetabaseClass.Active;

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

Facts := Rubr.Facts;

Hierarchy := Facts.DefaultHierarchy;

HLevels := Hierarchy.Levels;

For i := 0 To HLevels.Count - 1 Do

HLev := HLevels.Item(i);

Debug.WriteLine(Level + i.ToString + : + HLev.Name);

AttsSet := HLev.Attributes;

For j := 0 To AttsSet.Count - 1 Do

Att := AttsSet.Item(j);

Debug.WriteLine(Level attribute + i.ToString + : + Att.Name);

End For;

End For;

End Sub Main;

After executing the example, information about the current time series database hierarchy is displayed in the console window.

See also:

IMetaHierarchyLevel