Issue
This article explains how to display a record's audit history directly on the form, within a dedicated "History" tab or section—eliminating the need to access it via the Context Menu → History → List.
Release
All Releases
Resolution
To display the audit history on the form, you’ll need to create a Relationship between the target table (e.g., Incident) and the History [sys_history_line] table.
Step 1: Create a Relationship Record
- Navigate to System Definition > Relationships.
- Click New.
- Enter a descriptive Title (e.g., History).
- Set Applies to Table to the desired table (e.g., Incident).
- Set Queries from Table to History [sys_history_line].
- In the Query with field (Line #4), add the following:
current.addQuery("id",parent.sys_id);
Navigate to the Incident table.
- Configure Form Layout
- In the "Form view and section", scroll all the way down in "Section".
- Click New and give it a caption.
- This will create an empty section.
- From "Available" slushbucket, find "History" and put it on the Selected list.
- Save.