IAutoCubeSourceFixInfo.ItemByDim

Syntax

ItemByDim(Dimension: IDimensionModel): IAutoCubeSourceDimensionFix;

Parameters

Dimension. Structure of the dictionary fixed in the automatic cube.

Description

The ItemByDim property returns the fixed dimension of the data source of the automatic cube, which corresponds to the structure of the dictionary passed by the Dimension parameter.

Executing the example requires that the repository contains an automatic cube with the AUTO_CUBE identifier.

Sub Main;
Var
    MB:IMetabase;
    AutoCub:IAutoCube;
    SourceDim:IDimensionModel;
    Dim:IAutoCubeSourceDimensionFix;
Begin
    MB:=MetabaseClass.Active;
    AutoCub:=MB.ItemById("AUTO_CUBE").Bind As IAutoCube;
    SourceDim:=AutoCub.Source.Cube.Dimensions.Item(0);
    Dim:=AutoCub.Source.FixInfo.ItemByDim(SourceDim);
    Debug.WriteLine((Dim.Dimension As IMetabaseObject).Name);   

End Sub Main;

After executing the example name of the first fixed cube dimension is displayed in the console window.

See also:

IAutoCubeSourceFixInfo