IPrxDataIslandHeaderCommon.IsChildrenBeforeParents

Syntax

IsChildrenBeforeParents: Boolean;

Description

The IsChildrenBeforeParents property determines whether the Children before Parents option is enabled.

Comments

Available values:

Example

Executing the example requires a form that contains the Button component with the Button1 identifier and the UiReport component with the UiReport1 identifier. A regular report with a configured hierarchy is used as a data source. The example is a handler of the OnClick event for the Button1 component.

Add a link to the Dimensions system assembly.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Rep: IPrxReport;
    DIs: IPrxDataIslands;
    DI: IPrxDataIsland;
    DimModel: IDimensionModel;
    DIProp: IPrxDataIslandProperties;
    Top: IPrxDataIslandDimension;
    Level: IPrxDataIslandLevel;
Begin
    Rep := UiReport1.Report.Edit;
    DIs := Rep.DataIslands;
    DI := DIs.Item(
0).Edit;
        DimModel := DI.Slice.TopHeader.Item(
0).Dimension.Dimension;
        DIProp := DI.Properties;
        Top := DIProp.Dimension(DimModel);
        Level := Top.Level(DimModel.Levels.Item(
0));
        
If Not Level.IsChildrenBeforeParents Then
            Level.ChildrenBeforeParents := TriState.OnOption;
        
End If;
        Debug.Write(
"The Children before parents option: ");
        
Select Case Level.ChildrenBeforeParents
            
Case TriState.OnOption:
                Debug.WriteLine(
"is enabled");
            
Case TriState.OffOption:
                Debug.WriteLine(
"is disabled");
        
End Select;
    DI.Save;
    Rep.Save;
End Sub Button1OnClick;

After executing the example the console window displays result of the checking if the Children before Parents option is enabled for the first area columns of regular report.

If the option is enabled, it will be disabled for the set area columns.

See also:

IPrxDataIslandHeaderCommon