Creates a regular report based on the selected time series database. The specified time series database is added automatically in the data source list in the report. A slice is created for this database. A data area is created in the B2 cell of the report sheet based on this slice. After this the report opens for edit.
Command parameters are passed in the Data property. Executing the command requires to specify the following value in this property:
Value type | Description |
IMetabaseObjectDescriptor | Description of repository object - Time series database, based on which a regular report with data area must be created. |
The command can be used for time series database only.
Executing the example requires a form and a button named Button1 on the form. A repository contains a time series database with the OBJ_RUBRICATOR identifier.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Mb: IMetabase;
Target: IUiCommandTarget;
Context: IUiCommandExecutionContext;
Begin
MB := MetabaseClass.Active;
Target := WinApplication.Instance.GetPluginTarget("Report");
Context := Target.CreateExecutionContext;
Context.Data := MB.ItemById("OBJ_RUBRICATOR");
Target.Execute("CreateFastReport", Context);
End Sub Button1OnClick;
A regular report based on the selected time series database is created and opened for edit by clicking the button.
See also: