Opens a standard dialog box that is used to edit formulas.
The command can be used only for calculated cubes or for multidimensional calculation at database server.
Executing the example requires a form with the Button1 button and a calculated cube with the CALC_CUBE identifier.
Add links to the Forms, Metabase, and Ui system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Mb: IMetabase;
ObjDes: IMetabaseObjectDescriptor;
Target: IUiCommandTarget;
Begin
MB := MetabaseClass.Active;
ObjDes := MB.ItemById("CALC_CUBE");
Target := WinApplication.Instance.GetObjectTarget(ObjDes);
Target.Execute("CalcCube.EditFormulas", Null);
End Sub Button1OnClick;
Clicking the button opens a formula editor for the calculated cube with the CALC_CUBE identifier.
See also: