AutoRecalc: Boolean;
AutoRecalc: Boolean;
The AutoRecalc property determines whether the sheet or the report is to be calculated when the control value changes. If the property is set to True, all sheets using a control are recalculated when the value of this control element is changed. If the property is set to False, the sheets are not recalculated.
The default property value is True.
The following example assumes that there is the Report object with the IPrxReport type.
Sub UserProc;
Var
Report: IPrxReport;
Contrls: IPrxControls;
Contrl: IPrxControl;
Begin
Contrls := Report.Controls;
Contrl := Contrls.Item(0);
Contrl.AutoRecalc := False;
MObj.Save;
End Sub UserProc;
After executing the example the first control of the regular report has the Calculate Report When the Value is Changed option enabled.
The following example assumes that there is the Report object with the IPrxReport type.
Imports Prognoz.Platform.Interop.Report;
Public Sub UserProc(Params: StartParams);
Var
Report: IPrxReport;
Contrls: IPrxControls;
Contrl: IPrxControl;
Begin
Contrls := Report.Controls;
Contrl := Contrls.Item[0];
Contrl.AutoRecalc := False;
MObj.Save();
End Sub UserProc;
After executing the example the first control of the regular report has the Calculate Report When the Value is Changed option enabled.
See also: