IsDirty: Boolean;
The IsDirty property determines whether the regular report contains pending changes.
Executing the example requires that the repository contains a regular report with the REPORT identifier.
Add links to the Metabase, Report and Tab system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Report: IPrxReport;
Sheet: IPrxSheet;
SheetTab: IPrxTable;
Table: ITabSheet;
Begin
MB := MetabaseClass.Active;
// Get regular report
Report := MB.ItemById("REPORT").Bind As IPrxReport;
// Add a value to the A0 cell
Sheet := Report.ActiveSheet;
SheetTab := Sheet As IPrxTable;
Table := SheetTab.TabSheet;
Table.Cell(0, 0).Value := "The A0 cell";
If Report.IsDirty Then
Debug.WriteLine("The report contains unsaved changes");
Else
Debug.WriteLine("All changes are saved");
End If;
End Sub UserProc;
After executing the example the console displays whether there are unsaved changes in the regular report:
There are unsaved changes in the regular report
See also: