IPivot.IsCalced

Syntax

IsCalced: Boolean;

Description

The IsCalced property returns whether table data is calculated.

Comments

Available values:

Example

To execute the example, on the form place two Button components named Button1 and Button2, the ReportBox component named ReportBox1, and the UiReport component named UiReport1. Specify UiReport1 as a data source for ReportBox1. A regular report based on a standard cube slice is a data source for UiReport1.

Add links to the Express, ExtCtrls, Forms, Metabase, Pivot, Report, Tab, and Ui system assemblies.

The example is a handler of the OnClick event for the Button1 and Button2 components.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
    // Calculate report
    UiReport1.Report.Recalc;
End Sub Button1OnClick;
Sub Button2OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MB: IMetabase;
    Pivot: IPivot;
Begin
    MB := MetabaseClass.Active;
    Pivot := (UiReport1.Report.DataArea.Slices.Item(0As IEaxDataAreaPivotSlice).Pivot;
    // Check if table data is calculated
    If Pivot.IsCalced=True Then
        WinApplication.InformationBox ("Table data is calculated");
        Else
            WinApplication.InformationBox ("Table data is not calculated");
    End If;
End Sub Button2OnClick;

Clicking the first button calculates data. Clicking the second button displays a message with table data calculation result.

See also:

IPivot