PopupCommand(CommandType: EaxPopupCommandType);
PopupCommand(CommandType: Prognoz.Platform.Interop.Express.EaxPopupCommandType);
CommandType. Action on collapsed hierarchy.
The PopupCommand method executes action on collapsed hierarchy.
To sort hierarchy elements, use the IEaxSelectionPadContext.PopupSort method.
Executing the example requires a form containing the EaxConfigurationPanel component with the EaxConfigurationPanel1 identifier, the UiErAnalyzer component with the UiErAnalyzer1 identifier and the Button component with the Button1 identifier. Determine the UiErAnalyzer1 component as data source for the EaxConfigurationPanel1 component. Use express report as data source for the UiErAnalyzer1 component.
The example is a handler of the OnClick event for the Button1 component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
sps: ISystemPadContext;
Type: EaxPopupCommandType;
Begin
sps := EaxConfigurationPanel1.GetActiveContext;
Type := EaxPopupCommandType.ExpandAll;
(sps As IEaxSelectionPadContext).PopupCommand(Type);
End Sub Button1OnClick;
On the side panel pass to the Selection tab group and selection dimension. On clicking the button, all dimension levels will be expanded.
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: EaxPopupCommandType;
Begin
sps := eaxConfigurationPanelNet1.CtrlBox.GetActiveContext();
Type := EaxPopupCommandType.popupExpandAll;
(sps As IEaxSelectionPadContext).PopupCommand(Type);
End Sub;
See also: