The AdapTable Audit Log enables Audit information to be published to 4 different Audit Destinations.
One Audit Destination is Event - set via Audit Options.
The Audit Event API is used to subscribe to these event Audit events.
Subscribing to Audit Events
Consequently, in order to access the audit data, you will need to drill down to the auditLogEventArgs.data.id property (see Adaptable Events Overview for full details).
As an alternative you can use the
getAuditLogEntryFromEventArgs utility function (used below)
The way to listen to the Audit Event is as follows:
AdapTable publishes 4 Audit Events that users can subscribe to as needed.
These Audit Events closely match the availble Audit Triggers
|Audit Event||When Fired|
|AuditStateChanged||The Internal or User state of the Application has changed|
|AuditFunctionApplied||An AdapTable Function has been run|
|AuditCellEdited||A cell in the grid has been edited by the user|
|AuditTickingDataUpdated||Data in the grid changes as result of external action|
These events are only fired if the Audit Log has been configured with the property
auditAsEvent set to true in Audit Options.
Given there can be many changes in AdapTable this can be very verbose
This is fired when the Audit Log trigger for the Audit Event is Function Applied.
This is fired when the Audit Log trigger for the Audit Event is Cell Edit, caused by the end-user making a direct edit in AdapTable.
This is fired when the Audit Log trigger for the Audit Event is Ticking Data Edit, caused by the data in AdapTable ticking or changing other than as a result of direct user edit.