GetSelectionSet: IDimSelectionSet;
The GetSelectionSet method returns selected factors based on the attributes included into component navigation chain.
Executing the example requires a form with the Button1 button and the MetaAttributesBreadcrumb component named MetaAttributesBreadcrumb1. The MetaAttributesBreadcrumb1 is linked to a time series database.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
SelSet: IDimSelectionSet;
Sel: IDimSelection;
Begin
SelSet := MetaAttributesBreadcrumb1.GetSelectionSet;
For Each Sel In SelSet Do
Debug.WriteLine("Attribute: " + Sel.Dimension.Name);
Debug.WriteLine("Number of selected elements: " + Sel.SelectedCount.ToString);
End For;
End Sub Button1OnClick;
After executing the example clicking the button draws selection data set by the attributes from navigation chain of the MetaAttributesBreadcrumb1 component to the development environment console.
See also: