Express > Express Assembly Interfaces > IEaxSelectionPadContext > IEaxSelectionPadContext.PopupSort
PopupSort(SortType: EaxPopupSortType);
SortType. Sorting type of dimension elements.
The PopupSort method sorts hierarchy elements.
To execute action with collapsed hierarchy, use the IEaxSelectionPadContext.PopupCommand method.
Executing the example requires a form with the button named Button1, the EaxConfigurationPanel component named EaxConfigurationPanel1 and the UiErAnalyzer component that is a data source for EaxConfigurationPanel1. UiErAnalyzer is connected to an express report from repository.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
sps: ISystemPadContext;
Type: EaxPopupSortType;
Begin
sps := EaxConfigurationPanel1.GetActiveContext;
Type := EaxPopupSortType.Descending;
(sps As IEaxSelectionPadContext).PopupSort(Type);
End Sub Button1OnClick;
On the side panel go to the Selection tab group and selection dimension. On clicking the button descending sorting of dimension elements is made.
See also: