Opens a standard dialog box that is used to set up data area parameters.
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. |
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.
Executing the example requires a form, the Button1 button on the form, the ReportBox component and the UiReport component named UiReport1, which is used as a data source for the ReportBox component. The regular report linked to the UiReport1 component contains at least one formula area.
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.
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.Report;
Imports Prognoz.Platform.Interop.Ui;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Report: IPrxReport;
WinApp: WinApplication = New WinApplicationClass_2();
Target: IUiCommandTarget;
Context: IUiCommandExecutionContext;
Begin
Report := UiReportNet1.ReportUi.Report;
Target := WinApp.GetPluginTarget("Report");
Context := Target.CreateExecutionContext();
Context.Data := Report.FormulaIslands.Item[0];
Target.Execute("FormulaIslandSetup", Context, Null);
End Sub;
See also: