FormulaIslandSetup Command

Purpose

Opens a standard dialog box that is used to set up data area parameters.

Parameters of Use

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

Value type Description
IPrxFormulaIsland The regular report area, for which it is required to show the dialog box for setting up parameters.

Application Features

The command can be used only for regular reports. Executing the command shows logical True if the OK button is clicked in the dialog box, and False if the Cancel button is clicked.

Example

Executing the example requires a form with the Button1 button, the ReportBox component, and the UiReport component that is a data source for ReportBox. The regular report linked to the UiReport1 component contains at least one formula area.

Add links to the Forms, Report, and UI system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Report: IPrxReport;
    Target: IUiCommandTarget;
    Context: IUiCommandExecutionContext;
Begin
    Report := UiReport1.Report;
    Target := WinApplication.Instance.GetPluginTarget("Report");
    Context := Target.CreateExecutionContext;
    Context.Data := Report.FormulaIslands.Item(0);
    Target.Execute("FormulaIslandSetup", Context);
End Sub Button1OnClick;

Clicking the button opens a standard dialog box that is used to set up first data area parameters.

See also:

IUiCommandTarget.Execute