IUserDimAttribute.HasHierarchy

Syntax

HasHierarchy: Boolean;

Description

The HasHierarchy property determines whether attribute is used as alternative hierarchy.

Comments

Available values:

Example

Executing the example requires that repository contains calculated dictionary with the DIM_CALCULATED identifier which contains attribute with the NAME identifier.

Add links to the Dimensions, Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    userDim: IUserDimension;
    attrs: IUserDimAttributes;
    attr: IUserDimAttribute;
Begin
    // Get repository
    mb := MetabaseClass.Active;
    // Get calculated dictionary
    userDim := MB.ItemById("DIM_CALCULATED").Edit As IUserDimension;
    // Get collection of attributes
    attrs := userDim.Attributes;
    // Get the Name attribute
    attr := attrs.Item("NAME");
    // Set attribute as alternative hierarchy
    attr.HasHierarchy := True;
    // Save changes
    (userDim As IMetabaseObject).Save;
End Sub UserProc;

After executing the example attribute will be used as alternative hierarchy.

See also:

IUserDimAttribute