IPrxDataIslandDimension.Layout

Syntax

Layout: IPrxDataIslandDimensionLayout;

Description

The Layout property determines parameters of an arbitrary title in the data area.

Example

Sub main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

DIs: IPrxDataIslands;

DI: IPrxDataIsland;

Prop: IPrxDataIslandProperties;

Dim: IDimInstance;

DimProp: IPrxDataIslandDimension;

Layout: IPrxDataIslandDimensionLayout;

Cap, Cap1, Cap2: IPrxDataIslandDimensionLayoutNode;

Begin

MB := MetabaseClass.Active;

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

Report := MObj As IPrxReport;

DIs := Report.DataIslands;

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

    Prop := DI.Properties;

    Dim := DI.Slice.LeftHeader.Item(0).Dimension;

    DimProp := Prop.Dimension(Dim.Dimension);

    DimProp.CustomLayout := True;

    Layout := DimProp.Layout;

    Cap := Layout.RootNodes.Add;

    Cap.DimElement(Dim) := 0;

    Cap.Caption := "RF";

    Cap1 := Layout.RootNodes.Add;

    Cap1.DimElement(Dim) := 1;

    Cap1.Caption := "CFD";

    Cap2 := Layout.RootNodes.Add;

    Cap2.DimElement(Dim) := 20;

    Cap2.Caption := "CWFD";

DI.Save;

MObj.Save;

End Sub main;

After executing the example three elements of an arbitrary title are created for the dimension located in rows of the first data area collection of the regular report.

See also:

IPrxDataIslandDimension