IAutoCubeSource.Cube

Syntax

Cube: ICubeModelDestination;

Description

The Cube property determines a source cube, from which data is loaded to an automatic cube.

Example

Executing the example requires that the repository contains an automatic cube with the AUTO_CUBE identifier and a cube with the CUBE_SEP identifier that is determined as a source for automatic cube.

Sub Main;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    AutoCube: IAutoCube;
    Source: IAutoCubeSource;
    CubeSource: ICubeModel;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("AUTO_CUBE").Edit;
    CubeSource:= MB.ItemById("CUBE_SEP").Bind As ICubeModel;
    AutoCube := MObj As IAutoCube;
    Source:= AutoCube.Source;
    Source.Cube:= CubeSource.Destinations.DefaultDestination;
    MObj.Save;
End Sub Main;

After executing the example a cube with the CUBE_SEP identifier is determined as a data source for an automatic cube with the AUTO_CUBE identifier.

See also:

IAutoCubeSource