LeafElementsOnly: Boolean;
The LeafElementsOnly property determines whether it is necessary to place only leaf elements in the report (elements without selected child elements).
Available values:
True. Display only the elements without selected child elements.
False. Default value. Display all selected elements.
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: