HierarchyPosition: Integer;
The HierarchyPosition property determines hierarchy position in the list of additional names (headings). The hierarchy means indents that are used to display the hierarchy.
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;
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.NamingCount := 2;
DimProp.HierarchyPosition := 1;
DI.Save;
End Sub UserProc;
After executing the example indents that are used to display the hierarchy are moved to the created additional name. The additional heading contains the same text as the main heading.
See also: