Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This subroutine handles the core functionality for the Audit Manager. Normally this is called automatically by the Audit_Manager_MFS subroutine, which is used whenever a database table is tagged for auditing. However, developers can also use the Audit_Manager subroutine within their own procedures to assist them in debugging very complex code, especially if the contents of a data record is being updated at various points. Doing this will create an entry in the Audit table, just like the Audit Manager would normally do during database activities such as writing to disk. When used in this way the developer can use the OrigRecord and Activity parameters to pass in labels (or markers) that will be displayed in the audit trail log.

...

Code Block
ID = Get_Property(@Window, "ID")
Table = "CUSTOMERS"
CurrentRecord = Get_Property(@Window, "RECORD")
OrigRecord = "Line 8"         ; // Identify where in the program this is being tracked.
Activity = "Customer Balance" ; // Identify the reason this record is being tracked.
Audit_Manager(ID, Table, CurrentRecord, OrigRecord, Activity)

Screenshot

 

See Also

Audit_Manager_MFS