IPivot.ObtainTable

Syntax

ObtainTable: IPivotTable;

Description

The ObtainTable method builds and returns the data table.

Comments

If during the work with data, refreshing by the Refresh method takes place, a new data instance should be obtained with the help of this property.

Example

Executing the example requires a form with the Button1 button, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for TabSheetBox.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

OLAP: IEaxAnalyzer;

Pivot: IPivot;

Table: IPivotTable;

Begin

OLAP := UiErAnalyzer1.ErAnalyzer;

Pivot := OLAP.Pivot;

Table := Pivot.ObtainTable;

Table.Edit;

Table.Cell(0, 0) := 100;

Table.Post;

Pivot.Refresh;

End Sub Button1OnClick;

After executing the example, the data table is obtained. A value is changed for the fist cell.

See also:

IPivot