RecalcEaxObject(Obj: IEaxObject): TriState;
Obj. Report object.
The RecalcEaxObject property determines whether it is required to calculate selected object.
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: