ShowAttribute(Attribute: String): Boolean;
ShowAttribute[Attribute: String]: Boolean;
Attribute. Identifier of factor attribute, for which the visibility must be determined.
The ShowAttribute property determines visibility of the selected attribute of MDM dictionary in dropdown menu of values of time series database attribute.
This property is available for the time series database attributes that refer to the MDM dictionary.
By default attribute value is Name. If the ShowColumnHeaders property of the component is set to True, the ShowAttribute property determines visibility of additional attributes. Identifier of the desired attribute determined in corresponding MDM dictionary should be set as the value of the Attribute parameter.
Executing this example requires a form, a button on this 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 a drop-down list of attributes for the MetaAttributesBreadcrumb1 component. Attributes of dictionaries Name and Code are displayed for the Country attribute.
See also: