When cancel changes is triggered, I want to re-run the validateEditableRows query based on an empty changeSet, essentially resetting any validation errors previously returned by validateEditableRows. The problem seems to be that the changeSet still contains the changes when cancel changes triggers validateEditableRows.
Any chance we can see an app export or a screenshot of the validateEditableRows query?
So far, I tried returning the changeSet in my on "Cancel changes" event, but it was empty. I also tried disabling the on Cancel changes event if there are items in the changeSet. On my side, this caused the cancel changes event to not trigger at all.
I could not replicate it as well. My only theory is the amount of changes the table needs to undo...just theory. However, one possible work around is as follow.
Create a dummy Query JSON with SQL and select your table recordUpdates, limit to 1 record and 1 value is fine too. Run your query on success of this Query JSON with SQL
On the advanced tab, set "Watched inputs" and disable query if recordUpdates greater than 0
This way it will trigger ONLY when length goes from 1 to 0. So it will run after canceled and after saved. It's essentially a hacky way to watch the recordUpdates/changeSet collection. It's definitely not elegant solution.