IPrxDataIslandDimensionLayoutNodes.Add

Syntax

Add: IPrxDataIslandDimensionLayoutNode;

Description

The Add method adds an element of an arbitrary title.

Example

The following example assumes that there is the Report object with the IPrxReport type.

Sub UserProc;

Var

Report: IPrxReport;

DIs: IPrxDataIslands;

DI: IPrxDataIsland;

Prop: IPrxDataIslandProperties;

Dim: IDimInstance;

DimProp: IPrxDataIslandDimension;

RN: IPrxDataIslandDimensionLayoutNodes;

Cap, Cap1, Cap2: IPrxDataIslandDimensionLayoutNode;

Begin

Report := PrxReport.ActiveReport;

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;

RN := DimProp.Layout.RootNodes;

Cap := RN.Add;

Cap.DimElement(Dim) := 0;

Cap.Caption := "RF";

Cap1 := RN.Add;

Cap1.DimElement(Dim) := 1;

Cap1.Caption := "CFD";

Cap2 := RN.Add;

Cap2.DimElement(Dim) := 20;

Cap2.Caption := "CWFD";

DI.Save;

End Sub UserProc;

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:

IPrxDataIslandDimensionLayoutNodes