IDimensionModel.AttributeHierarchies

Syntax

AttributeHierarchies: IDimAttributeHierarchies;

Description

The AttributeHierarchies property returns collection of dictionary attributes alternative hierarchies.

Comments

Collection gets hierarchies which attributes are used as alternative hierarchies.

Example

Executing the example requires that repository contains table dictionary with the DIM_SEP identifier.

Add links to the Dimensions, Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    dimmodel: IDimensionModel;
    attrhiearchy: IDimAttributeHierarchies;
    count: Integer;
Begin
    // Get repository
    mb := MetabaseClass.Active;
    // Get dictionary structure
    dimmodel := mb.ItemById("DIM_SEP").Bind As IDimensionModel;
    // Get collection of attributes alternative hierarchies
    attrhiearchy := dimmodel.AttributeHierarchies;
    // Get number of alternative hierarchies
    count := attrhiearchy.Count;
    // Display number to the console
    Debug.WriteLine("Number of alternative hierarchies = " + count.ToString);
End Sub UserProc;

After executing the example the console displays number of attributes hierarchies alternative hierarchies of specified dictionary.

See also:

IDimensionModel