CalculatesSetup Command

Purpose

It opens a standard dialog box that is used to set up calculated factors.

Parameters of Use

Command parameters are passed in the Data property. Executing the command requires to specify the following value in the property:

Value type Description
IEaxAnalyzer The express report, which calculated factors must be set up.

Application Features

The command can be used only for express reports.

Fore Example

Executing the example requires a form, the Button1 button on it and the UiErAnalyzer component named UiErAnalyzer1. An express object is connected to UiErAnalyzer1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Target: IUiCommandTarget;
    Context: IUiCommandExecutionContext;
Begin
    Target := WinApplication.Instance.GetPluginTarget("Express");
    Context := Target.CreateExecutionContext;
    Context.Data := UiErAnalyzer1.ErAnalyzer;
    Target.Execute("CalculatesSetup", Context);
End Sub Button1OnClick;

Clicking the button opens the Calculated Factors dialog box of express report.

See also:

IUiCommandTarget.Execute