Cube.CreateReport Command

Purpose

Creates a regular report based on a cube.

Parameters of Use

None

Application Features

The command can be used only for platform cubes.

Example

Executing the example requires a form and a button named Button1 on the form and a cube with the CUBE_SEP identifier.

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        Mb: IMetabase;
        ObjDes: IMetabaseObjectDescriptor;
        Target: IUiCommandTarget;
    Begin
        MB := MetabaseClass.Active;
        ObjDes := MB.ItemById("CUBE_SEP");
        Target := WinApplication.Instance.GetObjectTarget(ObjDes);
        Target.Execute("Cube.CreateReport"Null);
    End Sub Button1OnClick;

On clicking the button a regular report based on the cube with the CUBE_SEP identifier is created.

See also:

IUiCommandTarget.Execute