RecalcDataIsland(DataIsland: IPrxDataIsland): TriState;
DataIsland - data area, which calculation parameters should be determined.
The RecalcDataIsland property determines whether to calculate the specified data area.
Executing the example requires a regular report with the PRX_REPORT identifier.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
Context: IPrxReportRecalcContext;
DataIsland: IPrxDataIsland;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("PRX_REPORT").Edit;
Report := MObj As IPrxReport;
Context := Report.CreateRecalcContext;
Context.Clear;
DataIsland := Report.DataIslands.Item(0);
Context.RecalcDataIsland(DataIsland) := TriState.OnOption;
Report.RecalcC(Context);
MObj.Save;
End Sub Button1OnClick;
After executing the example the specified report data area is calculated.
See also: