IPivot.LocalExecuting

Syntax

LocalExecuting: TriState;

Description

The LocalExecuting property determines calculation status.

Comments

To get whether a table is ready for data calculation, use the IPivot.IsReadyToExecute property.

Example

Executing the example requires that the repository contains an express report with the EXPRESS identifier.

Add links to the Express, Metabase and Pivot system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    Pivot: IPivot;
Begin
    MB := MetabaseClass.Active;
    // Get express report
    Express := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
    // Get settings for displaying report data table
    Pivot := Express.Pivot;
    // Determine report calculation status
    Pivot.LocalExecuting := TriState.OnOption;
    // Check if table is ready for data calculation
    If Pivot.IsReadyToExecute Then
        Debug.WriteLine("Table is ready for calculation");
        Else
            Debug.WriteLine("Table is not ready for calculation");
    End If;
    Debug.WriteLine ("Calculation status:");
    Debug.WriteLineIf(Pivot.LocalExecuting = -2" Calculate by services");
    Debug.WriteLineIf(Pivot.LocalExecuting = -1" Calculate locally");
    Debug.WriteLineIf(Pivot.LocalExecuting = 0" Do not calculate");
End Sub UserProc;

After executing the example the console displays information about table readiness for calculation and calculation status.

See also:

IPivot