Using flag fields to view changes to an individual field
In the base form of a join, if a field is set to audit after the audit join form is created, the flag field is created in the base form's audit form and in the audit join form.
When auditing is triggered, and if the audit field changes value, the corresponding flag field contains a "1" to indicate that the field changed; otherwise, it remains empty.
By using a flag field, you can refine your search and view changes to an individual field.
To view changes to an individual field
- Enable form-style auditing on a form.
- Select the fields for which you want auditing, and set the audit attribute to Audit or Audit and Copy for those fields.
Perform a search on the audit form with the following qualification included:
F_fieldID_C
where fieldID is the ID of the field for which you want to view the audit. This field must be one of the fields that have the Audit or Audit and Copy attribute enabled.
For example, Form A has fields A, B and C, and audit is turned on for A and B. To view the changes to A, search Form A with the following qualification:
'F_536870913_C' = "1"
where 536870913 is the field ID of field A. This query displays all of the records where field A has changed.