IDimAttribute.ObjectLinked

Syntax

ObjectLinked: Boolean;

Description

The ObjectLinked property determines whether dictionary attribute is a link to the repository object.

Comments

The property is read-only.

Available values:

To enable the "Attribute is a link to the repository object" attribute, use the IRdsAttribute.ObjectLinked.

Example

Executing the example requires that repository contains a dictionary with the DIM identifier containing the attribute with the ATTR identifier.

Add links to the Metabase and Dimensions system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    dimension: IDimensionModel;
    attribute: IDimAttribute;
    attributes: IDimAttributes;
Begin
    MB := MetabaseClass.Active;
    dimension := mb.ItemById("DIM").Bind As IDimensionModel;
    attributes := dimension.Attributes;
    attribute := attributes.FindById("ATTR");
    If attribute.ObjectLinked = True Then
        Debug.WriteLine("Attribute is a link to the repository object");
        Else
            Debug.WriteLine("Attribute is not a link to the repository object");
    End If;
End Sub UserProc;

After executing the example it will be checked whether defined dictionary attribute is a repository object, the checking result will be displayed to the console.

See also:

IDimAttribute