IPivotDimension.LeafElementsOnly

Syntax

LeafElementsOnly: Boolean;

Description

The LeafElementsOnly property determines whether it is necessary to place only leaf elements in the report (elements without selected child elements).

Comments

Available values:

Example

Executing the example requires a form with the checkbox named CheckBox1, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1, which is a data source for TabSheetBox.

Sub CheckBox1OnChange(Sender: Object; Args: IEventArgs);
Var
    OLAP: IEaxAnalyzer;
    Dims: IPivotDimensions;
    Dim: IPivotDimension;
Begin
    OLAP := UiErAnalyzer1.ErAnalyzer;
    Dims := OLAP.Pivot.Dimensions;
    For Each Dim In Dims Do
        Dim.LeafElementsOnly := CheckBox1.Checked;
    End For;
End Sub CheckBox1OnChange;

On changing checkbox selection, the displaying of leaf elements is changed in the express report:

See also:

IPivotDimension