IEaxAnalyzeCore.OpenCubeEx

Syntax

OpenCubeEx(CubeInstance: ICubeInstance; Options: EaxOpenCubeOptions);

Parameters

CubeInstance. Cube used as a data source.

Options. Cube opening mode.

Description

The OpenCubeEx method opens a cube (with advanced parameters) that is used to create an express report.

Comments

Available modes:

Example

Executing the example requires that the repository contains a cube with the CUBE_SEP identifier.

Add links to the Metabase, Cubes, and Express system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    CreateInfo: IMetabaseObjectCreateInfo;
    MObj: IMetabaseObject;
    Expr: IEaxAnalyzer;
    Cube: ICubeInstance;
Begin
    MB := MetabaseClass.Active;
    CreateInfo := MB.CreateCreateInfo;
    CreateInfo.Id := MB.GenerateId("EXPR_REP");
    CreateInfo.ClassId := MetabaseObjectClass.KE_CLASS_EXPRESSREPORT;
    MObj := MB.CreateObject(CreateInfo).Edit;
    Expr := MObj As IEaxAnalyzer;
    Cube := MB.ItemById("CUBE_SEP").Open(NullAs ICubeInstance;
    Expr.OpenCubeEx(Cube, EaxOpenCubeOptions.DefaultView);
    MObj.Save;
End Sub UserProc;

After executing the example an express report is created based on the saved view for the CUBE_SEP cube. Identifier of the created report is displayed in the console window.

See also:

IEaxAnalyzeCore