IPrxDataIslandDimensionLayoutNode.Children

Syntax

Children: IPrxDataIslandDimensionLayoutNodes;

Description

The Children property determines parameters of child elements of an element of an arbitrary title.

Example

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

Sub UserProc;

Var

Report: IPrxReport;

DIs: IPrxDataIslands;

DI: IPrxDataIsland;

Prop: IPrxDataIslandProperties;

Dim: IDimInstance;

DimProp: IPrxDataIslandDimension;

RN: IPrxDataIslandDimensionLayoutNodes;

Element, Child: IPrxDataIslandDimensionLayoutNode;

i: Integer;

Begin

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;

Element := RN.Add;

Element.DimElement(Dim) := 1;

Element.Caption := Dim.Elements.Name(1);

For i := 2 To 19 Do

Child := Element.Children.Add;

Child.Caption := Dim.Elements.Name(i);

Child.DimElement(Dim) := i;

End For;

DI.Save;

End Sub UserProc;

After executing the example an element of an arbitrary title is created in the first data area collection of the regular report, a number of child elements is created for this element. Names of title elements match names of the dimension elements.

See also:

IPrxDataIslandDimensionLayoutNode