It opens a standard dialog box that is used to set up data slice dimensions.
Command parameters are passed in the Data property. Executing the command requires to specify the following value in this property:
Value type | Description |
IPrxDataIsland or IPrxChart | A data area or a chart built on the data area, for which it is required to show the dialog box that is used to set up data slice dimensions. |
The command can be used only for regular reports.
Executing the example requires a form and a button named Button1 on the form. The repository must contain a regular report with the REG_REPORT identifier, the report has a data area. The example is a handler of the OnClick event for the Button1 component.
Add links to the Metabase, Report and Ui system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
MB: IMetabase;
Report: IPrxReport;
Target: IUiCommandTarget;
Context: IUiCommandExecutionContext;
Begin
MB := MetabaseClass.Active;
Report := mb.ItemById("REG_REPORT").Open(Null) As IPrxReport;
Target := WinApplication.Instance.GetPluginTarget("Report");
Context := Target.CreateExecutionContext;
Context.Data := Report.DataIslands.Item(0);
Target.Execute("SetupSliceDimsTable", Context);
End Sub Button1OnClick;
Clicking the button opens a dialog that is used to set up data slice dimensions.
See also: