IPrxDataIslandDimension.Level

Syntax

Level(Level: IDimLevel): IPrxDataIslandLevel;

Parameters

Level - dimension level.

Description

The Level property returns an object containing dimension level parameters. The dimension level is passed by the Level parameter.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

DIs: IPrxDataIslands;

DI: IPrxDataIsland;

DimModel: IDimensionModel;

Prop: IPrxDataIslandProperties;

PropDim: IPrxDataIslandDimension;

Level: IPrxDataIslandLevel;

Begin

MB := MetabaseClass.Active;

Report := MB.ItemById("Report").Bind As IPrxReport;

DIs := Report.DataIslands;

DI := DIs.Item(0).Edit;

    DimModel := DI.Slice.TopHeader.Item(0).Dimension.Dimension;

    Prop := DI.Properties;

    PropDim := Prop.Dimension(DimModel);

    Level := PropDim.Level(DimModel.Levels.Item(0));

DI.Save;

End Sub Main;

After executing the example the Level variable contains parameters of the first level of the first dimension located in columns. The identifier of the regular report - Report.

See also:

IPrxDataIslandDimension