IMetaAttributesBreadcrumb.GetAttributeValue

Syntax

GetAttributeValue(Attribute: IMetaAttribute): IDimSelection;

Parameters

Attribute. Attribute, which values are displayed in the component, and which selection should be obtained.

Description

The GetAttributeValue method returns the indicators selection set by the Attribute attribute.

Example

Executing the example requires a form, a button on this form and the MetaAttributesBreadcrumb component named MetaAttributesBreadcrumb1. The MetaAttributesBreadcrumb1 component displays data of time series database containing the COUNTRY attribute.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Attrs: IMetaAttributes;

Attr: IMetaAttribute;

Sel: IDimSelection;

Elems: IDimElements;

i: Integer;

Begin

Attrs := MetaAttributesBreadcrumb1.MetaAttributes;

Attr := Attrs.FindById("COUNTRY");

Sel := MetaAttributesBreadcrumb1.GetAttributeValue(Attr);

Elems := Sel.Dimension.Elements;

For i := 0 To Sel.SelectedCount - 1 Do

Debug.WriteLine(Elems.Name(Sel.Element(i)));

End For;

End Sub Button1OnClick;

After executing the example clicking the button displays indicator names selected in the component by the COUNTRY attribute in the development environment console.

The following values are displayed for this selection:

Argentina

Armenia

Australia

Austria

See also:

IMetaAttributesBreadcrumb