Updating vs adding a row: how to test?
Is there an easy way to check if I’m updating an existing row as opposed to adding a new one? I have some read-only columns that I increment automatically when I add a new row, and I don’t want to touch them if I’m updating that row (say if the user needs to go back and change something).
I do have a slice for the table that contains all rows saved - how do I check if the row being updated is in the slice (which, if true, would tell me that I’m updating a row and not adding a new one)?
Thanks everyone as always.