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:

PropertyTypeDescriptionDefault
activeByDefaultbooleanMake Data Change History active by defaultfalse
changeHistoryButtonDataChangeHistoryButton<TData> |DataChangeHistoryButton<TData>[]Action button definition; can be used to implement undo functionalityundefined
showDataChange(cellDataChangedInfo:CellDataChangedInfo<TData>) => booleanFunction specifying which data changes to include in Data Change Historyundefined (all data changes are logged)
showLastDataChangeOnlybooleanShow all changes for a Cell or just the last onetrue

Data Change History API

The DataChangeHistoryAPI section of Adaptable API contains these functions:

MethodReturnsDescription
activateDataChangeHistory(forceReset)voidActivates Data Change History tracking (or resumes it, if it is currently suspended)
addDataChangeHistoryEntry(dataChangeInfo)voidAdds item to Data Change History log
clearDataChangeHistoryEntry(dataChangeInfo)voidClears a Row in Data Change Grid
deactivateDataChangeHistory()voidDeactivates Data Change History tracking and flushes the cache
getDataChangeForGridCell(gridCell)CellDataChangedInfo | undefinedRetrieves last data change for a given Cell
getDataChangeHistoryLog()CellDataChangedInfo[]Retrieves all data changes which are currently available
getDataChangeHistoryMode()'ACTIVE' | 'INACTIVE' | 'SUSPENDED'Retrieves current Data Change History mode: 'ACTIVE', 'INACTIVE', 'SUSPENDED'
openDataChangeHistorySettingsPanel()voidOpens Data Change History panel
suspendDataChangeHistory()voidSuspends data change history tracking
undoAllDataChangeHistoryEntries()GridCell[]Reverts all data changes to previous values and returns GridCells that were undone
undoDataChangeHistoryEntry(dataChangeInfo)GridCell | undefinedReverts provided data change to its previous value and returns GridCell that was undone