IPrxReportRecalcContext.RecalcEaxObject

Syntax

RecalcEaxObject(Obj: IEaxObject): TriState;

Parameters

Obj. Report object.

Description

The RecalcEaxObject property determines whether it is required to calculate selected object.

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier containing at least one object.

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

Sub UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Report: IPrxReport;
    Context: IPrxReportRecalcContext;
    DataArea: IEaxDataArea;
    EaxObj: IEaxObject;
Begin
    
// Get repository
    MB := MetabaseClass.Active;
    
// Get report
    Report := MB.ItemById("REPORT").Edit As IPrxReport;
    
// Get calculation context
    Context := Report.CreateRecalcContext;
    Context.Clear;
    
//Get analytical data area
    DataArea := Report.DataArea;
    
//Get analytical area object
    EaxObj := DataArea.Slices.Item(0).Views.Item(0);
    
//Calculate object
    Context.RecalcEaxObject(EaxObj) := TriState.OnOption;
    Report.RecalcC(Context);
    
//Save calculation result
    (Report As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the object is calculated.

See also:

IPrxReportRecalcContext