IPrxDataIslandNaming.Expression

Syntax

Expression: IExpression;

Description

The Expression property returns an object containing expression of the name of the elements.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

DIs: IPrxDataIslands;

DI: IPrxDataIsland;

DimModel: IDimensionModel;

Prop: IPrxDataIslandProperties;

PropDim: IPrxDataIslandDimension;

Naming: IPrxDataIslandNaming;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("Report").Edit;

Report := MObj 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);

    Naming := PropDim.Naming;

    Naming.Expression.AsString := ":ITEM";

DI.Save;

MObj.Save;

End Sub Main;

After executing the example format of dimension elements' names is set for the name of the first dimension.

See also:

IPrxDataIslandNaming