OpenRubricator Command

Purpose

Creates an express report based on a time series database and then opens it for review.

Parameters of Use

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

Parameter Description
IMetabaseObjectDescriptor Description of repository object - Time series database.

Application Features

Example

Executing the example requires a form and a button named Button1 on the form. Repository contains a time series database with the Rub_1 identifier.

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        MB: IMetabase;
        Target: IUiCommandTarget;
        Context: IUiCommandExecutionContext;
    Begin
        MB := MetabaseClass.Active;
        Target := WinApplication.Instance.GetPluginTarget("Express");
        Context := Target.CreateExecutionContext;
        Context.Data := MB.ItemById("Rub_1");
        Target.Execute("OpenRubricator", Context);
    End Sub Button1OnClick;

A new express report based on the Rub_1 time series database is created by clicking the button. This report is opened for view.

See also:

IUiCommandTarget.Execute