Data Change History

View as Markdown

Summary

  • Data Change History Monitor displays a list of all changes to Grid data (either user or ticking)

The Data Change History Module gives users an overview of cell value changes in the current AdapTable session.

The Data Changes Monitor lists those changes (user edits and ticking data) and supports undo and row actions when you configure them.

Note

This is not the same as Data Change Alerts (rules that fire when data changes) or Listening to Data Changes (AG Grid / AdapTable change events in your app code). Data Change History is the in-product log and monitor UI.

Configuring Data Change History

All five properties on DataChangeHistoryOptions are covered in the handbook:

PropertyPurpose
activeByDefaultStart with tracking Active instead of waiting for user activation
showDataChangeFilter which changes appear in the monitor
showLastDataChangeOnlyShow only the latest change per cell, or every change
maxDataChangesInStoreCap how many changes are kept in memory
changeHistoryButtonButtons on each log row (undo, clear, custom) — see Data Change History Buttons

Find Out More

See Configuring Data Change History for the first four properties and demos.

Data Change Modes

Tracking is off until activated (unless you set activeByDefault).

At run-time, DataChangeHistoryApi.getDataChangeHistoryMode returns one of:

  • ACTIVE — changes are recorded from when tracking became active
  • SUSPENDED — new changes are not recorded; existing log entries remain
  • INACTIVE — new changes are not recorded and the in-memory log is cleared

Users switch mode from the Data Change History toolbar, tool panel, status bar, or Settings Panel (see below).

Hint

Set activeByDefault to true in Data Change History Options to start in ACTIVE mode when the grid loads.

Data Change History
Fork
  • This grid mimics ticking data: every 2 seconds github_stars and github_watchers update (with Flashing Cells active) and updated_at shows the current time
  • activeByDefault is true in adaptableOptions.ts, so changes are tracked from the start
Try It Out
  • Click Show on the Data Change History toolbar to open the Data Changes Monitor
  • Suspend or deactivate tracking and note the grid still ticks, but new edits no longer appear in the log
  • Edit a column (for example language or description) and see User Edit in the Source column
Loading demo…

Using Data Change History

The Data Change History Monitor is designed to be used at run time.

Opening Data Changes Monitor

Open the monitor ( Show ) from:

Setting Data Change History Mode

Change mode from the toolbar, tool panel, status bar, or Settings Panel.

Each control offers (labels depend on current mode):

  • Suspend / Resume
  • Activate / Deactivate
  • Show

UI Entitlements

The Entitlements for Data Change History are:

  • Full — everything is available and visible
  • ReadOnly — the monitor displays changes but cannot be activated, deactivated, or suspended
  • Hidden — the monitor and related UI controls are hidden

FAQ

Can I see other information in the Change History Module other than cell changes? The monitor records cell value changes (user edits and ticking data). For other AdapTable activity, use the Adaptable State Changed Event.

How is this different from Data Change Alerts? Data Change Alerts evaluate rules when data changes and can notify users or run workflows. Data Change History is a session log of cell edits with optional undo—not an alerting rule engine.