IRdsAttribute.HasHierarchy

Syntax

HasHierarchy: Boolean;

Description

The HasHierarchy property determines whether attribute can be used to built alternative hierarchy.

Comments

Available values:

Example

Executing the example requires that the repository contains an MDM dictionary with the TD_MDM identifier.

Add links to the Dal, Metabase and Rds system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Dict: IRdsDictionary;
    Attrs: IRdsAttributes;
    Attr: IRdsAttribute;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("TD_MDM").Edit;
    Dict := MObj As IRdsDictionary;
    Attrs := Dict.Attributes;
    Attr := Attrs.Add;
    Attr.DataType := DbDataType.String;
    Attr.HasHierarchy := True;
    Attr.Id := "UserAttr";
    Attr.Name := "Attribute for alternative hierarchy";
    Attr.Nullable := True;
    MObj.Save;
End Sub UserProc;

After executing the example the attribute, which can be used to build alternative hierarchy, will be added to the MDM dictionary.

See also:

IRdsAttribute