EditHierarchyFormula(Element: IDimElement);
EditHierarchyFormula(Element: Prognoz.Platform.Interop.Dimensions.IDimElement);
Element. Dimension element.
The EditHierarchyFormula method edits formula of current hierarchy element.
To edit dimension, use the IEaxSelectionPadContext.EditDimension method.
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.
Add link to the Dimensions system assembly.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
sps: ISystemPadContext;
Element: IDimElement;
Begin
sps := EaxConfigurationPanel1.GetActiveContext;
Element := (sps As IEaxSelectionPadContext).FocusedElement;
(sps As IEaxSelectionPadContext).EditHierarchyFormula(Element);
End Sub Button1OnClick;
On the side panel pass to the Selection tab group and selection dimension. On clicking the button the Expression Editor dialog box opens.
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;
Imports Prognoz.Platform.Interop.Dimensions;
…
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
sps: ISystemPadContext;
Element: IDimElement;
Begin
sps := eaxConfigurationPanelNet1.CtrlBox.GetActiveContext();
Element := (sps As IEaxSelectionPadContext).FocusedElement;
(sps As IEaxSelectionPadContext).EditHierarchyFormula(Element);
End Sub;
See also: