IEaxSelectionPadContext.PopupSort

Fore Syntax

PopupSort(SortType: EaxPopupSortType);

Fore.NET Syntax

PopupSort(SortType: Prognoz.Platform.Interop.Express.EaxPopupSortType);

Parameters

SortType. Sorting type of dimension elements.

Description

The PopupSort method sorts hierarchy elements.

Comments

To execute action on collapsed hierarchy, use the IEaxSelectionPadContext.PopupCommand method.

Fore Example

Executing the example requires a form with the button named Button1 on it, the EaxConfigurationPanel component named EaxConfigurationPanel1 and the UiErAnalyzer component which is installed as 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 pass to the Selection tab group and selection dimension. On clicking the button descending sorting of dimension elements is made.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Express;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    sps: ISystemPadContext;
    Type: EaxPopupSortType;
Begin
    sps := eaxConfigurationPanelNet1.CtrlBox.GetActiveContext();
    Type := EaxPopupSortType.sortDescending;
    (sps As IEaxSelectionPadContext).PopupSort(Type);
End Sub;

See also:

IEaxSelectionPadContext