I have a list and A form that’s bound to it. When I save an item of the list with the form, the list updates, which in turn triggers its DataProcessor to send a request to the server. Everything up to this point works.
Now when there is an error on the server side, the server-side script sends back a JSON object with the correct ID of the (not) updated item and a status of “error” - like it’s documented. What I expected was that the list would show the old value because it knows that the update failed. What actually happened was nothing. So I tried to use the events of the DataProcessor (onBeforeSaveError and onAfterSaveError) to restore the old state of the item - without success. I could not access the old values or find a method that does it for me anywhere.
How can I revert the item back to its previous value? Wouldn’t it make sense for the list/DataProcessor to revert it automatically? Will it be implemented?