Cell lock? How to manage multiple user editing the same cell

Hello everybody,

First post here, I’m super happy with grist but there is one thing I cannot solve on my own.

I have a table where the same column need to be edited by multiple user. If two user edit the same cell at the same time, the first edit is discarded.

I would like to avoid that.

  • I couldn’t find a way to trigger cell locking or visual information that a cell is being edited by another user.
  • I know i can add a ‘last edit’ column and log editing time. But it that still leave room for errors if the user is not attentive.
    logs = value or ""
    log = $last_edited + ' ' + NOW().isoformat(timespec = "seconds")
    return log + '\n' + logs

Are there other solutions to prevent one user overwriting another?

Thanks a lot,

al

Hello,

All I can think would introduce frictions for users.

As the last to validate a cell content always win, you could ensure it’s the only one who can change the value at once, with a formal edit mode.

For instance, with a combination of a boolean Edit column + text Current editor column + permissions to switch between view and edit row + trigger formulas :

  • On Current editor column to store current session user when Edit is set to True
  • A rule to grant current user in edition (by default read only for everyone)based upon Current editor content
  • Trigger formulas to clear Edit and Current editor when any other column change to release the lock

So, not really convenient tu set, to use and probably buggy under specific conditions (i.e. connection lost before changing anything would lock everyone).