DataIslandLevel: IPrxDataIslandLevel;
The DataIslandLevel property returns dimension level to be formatted.
The following example assumes that there is the Report object with the IPrxReport type.
Sub UserProc;
Var
Report: IPrxReport;
DIs: IPrxDataIslands;
DI: IPrxDataIsland;
DimModel: IDimensionModel;
Prop: IPrxDataIslandProperties;
PropDim: IPrxDataIslandDimension;
Level: IPrxDataIslandLevel;
Style: IPrxDataElementStyle;
Begin
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));
Style := Level.Style;
Style.DataIslandLevel.ChildrenBeforeParents := TriState.OnOption;
DI.Save;
End Sub UserProc;
After executing the example the Children Before Parents option is enabled for the specified level.
See also: