To implement audit trail, configuration must be done in design time as well as in runtime. In design time the developer defines which data is protected. In runtime only new entities are registered so that system acknowledges implementation of audit trail.
Example (MxSpace)
To see the implementation of the audit trail feature in MxSpace application click Production -> Manage. Right click any record in the grid displaying work order BOMs. Select Audit Trail....Check the square in front of an entity in Supported Entities section. You can see the history of changing BOM quantity.
To implement audit trail
- Open appropriate adapter (WorkOrderAdapter) in Solution Explorer.
- Expand the desired statement (Update) in a data source (WoBom).
- Select Audit Trail node.
- Click Add command in Selected Element Properties and select Parameter Trail. New item is added to the Existing Items list. See its properties in Selected Items Properties section.
- In property Caption enter a string (Quantity Changed) which will describe the data protected.
- In property EntityCode enter a unique string (WO_BOM_QUANTITY) that will represent audit trail on this parameter.
- In property KeyParameter select a parameter (@Id) which is a primary key and by whom the updated record will be located and updated.
- In property ParameterName select a parameter (@Quantity) that holds the new value and the value that will be displayed in Audit Trail viewer.
- Login into MX-Client with administrator privileges, click application button and select Control Panel.
- In Server section click Signature Management.
- In section Purposes add new record appropriately.
- In section Entities add new record. In Code column enter the entity code (WO_BOM_QUANTITY) defined in design time (Point 5). In Name column enter a desired string.