I’m using REST as proxy.
Datatable has save property and updateFromResponse
When I add a new record to datatable and if it throws error “400 Bad Request” It’s still shows the record as inserted.
How to prevent this?
I’m using REST as proxy.
Datatable has save property and updateFromResponse
When I add a new record to datatable and if it throws error “400 Bad Request” It’s still shows the record as inserted.
How to prevent this?
Do you want to remove the record from a datatable when server returns code 400 ?
If server returns error, Update or Insert must be invalid.
Inserting fails on server side but it shows the record like it’s inserted.
If It fails, inserted record must be deleted or updated record must be turned back.
It is possible to catch the error response and delete the wrong record. There is no undo functionality though, so there is no way to revert record back after invalid update call.