Unify Applications
Logo
Inline Edit Changeset

Inline Edit Changeset

Logo

5 mins READ

When inline editing is enabled on a Table block, the changeset system tracks every cell edit before anything is saved — giving users (and your app) a chance to review, batch-save, or discard all changes at once. This page walks you through a bulk-edit example. For the full reference, see Inline Editing & Changesets.

Overview

Cell edits aren't saved when the user leaves the cell. Every edit is held in a client-side buffer — the changeset — and a floating bar at the bottom of the table shows how many changes are pending, with Cancel and Save. Nothing is written until Save runs your On Save handler. This makes bulk editing safer: users review their edits, then save or discard them all at once.

Note: There's no separate changeset mode and no setting that saves each cell immediately. Edits always collect in the changeset. Configure an On Save handler on the table's Save Action add-on to give users the Save bar. Without one, no bar appears and the changeset grows as a log of every edit — see Inline Editing & Changesets.

Before You Start

The changeset state keys (changesetList, changesetMap, rowOrderChangesetList), the shape of each entry, the Save Action properties, the Clear Changeset methods and the Save/Cancel bar are all covered in Inline Editing & Changesets. The example below uses the table's Save Action add-on, shown here.

unify-applications-inline-edit-changeset-01-save-action-settings.png
unify-applications-inline-edit-changeset-01-save-action-settings.png

Example: Bulk Price Editor

A products table where users edit prices in bulk and save them in one go.

  1. Set the table's Primary Key (for example id). On the Price column, set the Field Key to price and turn on Editable.

  2. Under Inspector → Content → Add-ons → Save Action → Interactions, add an On Save event.

  3. In On Save, add a Trigger Data Source action for the data source that updates your records, with its input bound to {{ products_table.changesetList }}. Bind it in this step — once the table refreshes, the changeset is empty.

  4. End On Save with Trigger Component Method → products_table → Refetch Data to reload the grid.

  5. Leave Clear changeset on successful save on. The pending changes clear once the refresh completes.

Page

Relationship

Inline Editing & Changesets

The full reference for the Editable toggle, the Save Action add-on, changeset state and gotchas

Table State and Bindings

Every state key the table exposes, including the changeset

FAQs

Does the changeset persist across page refreshes?

No. The changeset lives in memory for the duration of the page session. A full page refresh clears all pending changes without saving them. The table has no method to load edits back into the changeset, so ask users to click Save before they leave or refresh the page.

Can I save only some changes from the changeset, not all of them?

Yes, with your own handler. In On Save, filter {{ id.changesetList }} in an expression and pass only the entries you want to your update call. With Clear changeset on successful save on, the whole changeset clears after the table refreshes — so turn it off if the other edits should stay pending, and run the table's Clear Changeset method yourself with the Trigger Component Method action.

What happens if the save API call fails?

Clear changeset on successful save waits for the table's data refresh, not for your update call. If the update fails but the refresh still runs, the pending changes clear anyway. To keep failed edits pending for a retry, run the table's Refetch Data method from the update data source's On Success event, and show a message from its On Failure event.