SetSelectionSet(Value: IDimSelectionSet);
Value. Selection by attributes which must be set.
The SetSelectionSet selects factors based on the attributes included into the component's navigation chain.
Executing the example requires a form with the Button1 button and the MetaAttributesBreadcrumb component named MetaAttributesBreadcrumb1. The MetaAttributesBreadcrumb1 is connected 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
Sel.DeselectAll;
Sel.SelectElement(0, False);
End For;
MetaAttributesBreadcrumb1.SetSelectionSet(SelSet);
End Sub Button1OnClick;
After executing the example click the button and the selection by attributes from navigation chain of the MetaAttributesBreadcrumb1 component is changed. Only the first elements are selected by all attributes.
See also: