Data Change History Technical Reference

Summary

  • Data Change History Options contains properties enabling Data Change History to be configured
  • Data Change History API Section of Adaptable API provides run-time accesss

Data Change History Options

The DataChangeHistoryOptions section of Adaptable Options contains these properties:

PropertyDescriptionDefault
activeByDefaultMake Data Change History active by defaultfalse
changeHistoryButtonAction button definition; can be used to implement undo functionalityundefined
showDataChangeFunction specifying which data changes to include in Data Change Historyundefined (all data changes are logged)
showLastDataChangeOnlyShow all changes for a Cell or just the last onetrue

Data Change History API

The DataChangeHistoryAPI section of Adaptable API contains these functions:

MethodDescription
activateDataChangeHistory(forceReset)Activates Data Change History tracking (or resumes it, if it is currently suspended)
addDataChangeHistoryEntry(dataChangeInfo)Adds item to Data Change History log
clearDataChangeHistoryEntry(dataChangeInfo)Clears a Row in Data Change Grid
deactivateDataChangeHistory()Deactivates Data Change History tracking and flushes the cache
getDataChangeForGridCell(gridCell)Retrieves last data change for a given Cell
getDataChangeHistoryLog()Retrieves all data changes which are currently available
getDataChangeHistoryMode()Retrieves current Data Change History mode: 'ACTIVE', 'INACTIVE', 'SUSPENDED'
openDataChangeHistorySettingsPanel()Opens Data Change History panel
suspendDataChangeHistory()Suspends data change history tracking
undoDataChangeHistoryEntry(dataChangeInfo)Reverts the provided data change to its previous value