I have created an object called Audit with the following attributes:
Action > Choices: Insert, Update, Delete, Viewed
Description
MadeBy
ModeOn
ObjectID
ObjectName
On each BO I have three rules (For BO Activity):
Audit_New
If Activity IS NEW Then
CREATE Audit WITH Audit.Action='Insert',Audit.Description=GET_CHANGES(Activity),Audit.MadeBy=LoggedInRegularUser.LoginName,Audit.ObjectName='Activity',Audit.ObjectID=Activity.ID
Audit_Changed
If Activity WAS CHANGED Then
CREATE Audit WITH Audit.Action='Update',Audit.Description=GET_CHANGES(Activity),Audit.MadeBy=LoggedInRegularUser.LoginName,Audit.ObjectName='Activity',Audit.ObjectID=Activity.ID
Audit_Delete
If Activity WAS CHANGED AND Activity.Status='Deleted' Then
CREATE Audit WITH Audit.Action='Deleted',Audit.Description=GET_CHANGES(Activity),Audit.MadeBy=LoggedInRegularUser.LoginName,Audit.ObjectName='Activity',Audit.ObjectID=Activity.ID
I now want to add a button to the activity form to allow the user to see the audit for the current object.
How do I do this?
My first thoughts where to:
Add an operation for the form called 'Audit' which runs a process called 'aud_display' which does the following:
FIND Audit WHERE Audit.ObjectID=?'Object ID' ORDER BY Audit.MadeOn
VIEW Audit
I put in the form operation, Process input 'Address' with value 'Address.ID'
But this dosn't seem to do anything and leaves a box saying 'Executing'
How have other users implemented displaying the audit details for an object?