IDimAttribute.Visible

Syntax

Visible: Boolean;

Description

The Visible property determines whether attribute values are shown.

Comments

If Visible = True, attribute values are displayed.

Example

Executing the example requires that repository contains a calendar dictionary with the DICT_CALEND 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("DICT_CALEND").Edit As IDimensionModel;
    attributes := dimension.Attributes;
    attribute := attributes.FindById("BLOCK_TYPE");
    If attribute <> Null Then
        attribute.Visible := True;
        (dimension As IMetabaseObject).Save;
    End If;
End Sub UserProc;

After executing the example values of the Calendar Block Type attribute are displayed in open calendar dictionary.

See also:

IDimAttribute