IPivotDimensionLevelPropertiesCommon.CollapseChildren

Fore Syntax

CollapseChildren: TriState;

Fore.NET Syntax

CollapseChildren: Prognoz.Platform.Interop.ForeSystem.TriState;

Description

The CollapseChildren property determines whether dimension(s) child elements will be collapsed on creating a table.

Comments

The property can be set to TriState.Undefined if the current parameters are obtained for heading or sidehead, and hierarchies of elements in different dimensions are in different states. If the property is set to TriState.OnOption, all hierarchies will be collapsed.

Fore Example

Executing the example requires a form with the Button1 button, the UiErAnalyzer component named UiErAnalyzer1 and any visualizers, for which UiErAnalyzer1 is set as a data source.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Express: IEaxAnalyzer;
    Pivot: IPivot;
    LHeader: IPivotHeader;
Begin
    Express := UiErAnalyzer1.ErAnalyzer;
    Pivot := Express.Pivot;
    LHeader := Pivot.LeftHeader;
    If Not LHeader.IsCollapseChildren Then
        LHeader.CollapseChildren := TriState.OnOption;
    End If;
End Sub Button1OnClick;

Clicking the button checks if there are expanded hierarchies of elements in dimensions located in the sidehead. If there are such dimensions, hierarchies of elements of all dimensions will be collapsed in the sidehead.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.ForeSystem;
Imports Prognoz.Platform.Interop.Pivot;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Express: EaxAnalyzer;
    Pivot: IPivot;
    LHeader: IPivotHeader;
Begin
    Express := UiErAnalyzerNet1.ErAnalyzer.ErAnalyzer;
    Pivot := Express.Pivot;
    LHeader := Pivot.LeftHeader;
    If Not LHeader.IsCollapseChildren Then
        LHeader.CollapseChildren := TriState.tsOnOption;
    End If;
End Sub;

See also:

IPivotDimensionLevelPropertiesCommon