IMetaAttributeSetting.ShowAttribute

Syntax

ShowAttribute(Attribute: String): Boolean;

Parameters

Attribute. Identifier of the indicator attribute, for which visibility must be determined.

Description

The ShowAttribute property determines visibility of the specified attribute of MDM dictionary in the drop-down list of values of time series database attribute.

Comments

This property is available for the time series database attributes that refer to the MDM dictionary.

The default attribute value is Name. If the ShowColumnHeaders property of the component is set to True, the ShowAttribute property determines visibility of additional attributes. Specify identifier of the required attribute determined in the corresponding MDM dictionary as the value of the Attribute parameter.

Example

Executing the example requires a form, a button on the form and the MetaAttributesBreadcrumb component named MetaAttributesBreadcrumb1. The MetaAttributesBreadcrumb1 component is configured to display the data of time series database. The time series database contains the Country attribute that refers to countries dictionary.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Setts: IMetaAttributeSettings;
    Setting: IMetaAttributeSetting;
Begin
    MetaAttributesBreadcrumb1.ShowColumnHeaders := True;
    Setts := MetaAttributesBreadcrumb1.MetaAttributeSettings;
    Setting := Setts.FindById("COUNTRY");
    Setting.ShowAttribute("NAME") := True;
    Setting.ShowAttribute("CODE") := True;
End Sub Button1OnClick;

After executing the example clicking the button enables displaying of column headers in the drop-down list of attributes for the MetaAttributesBreadcrumb1 component. The Name and Code attributes of the dictionary are displayed for the COUNTRY attribute.

See also:

IMetaAttributeSetting