IMetaAttributesBreadcrumb.GetAttributeValue

Syntax

GetAttributeValue(Attribute: IMetaAttribute): IDimSelection;

Parameters

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

Description

The GetAttributeValue method returns factor 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 draws factor names selected in the component by the COUNTRY attribute to the console of development environment.

The following values are displayed for this selection:

Argentina

Armenia

Australia

Austria

See also:

IMetaAttributesBreadcrumb