ParamQuery

General Category => Help for ParamQuery Pro => Topic started by: jeremy on September 23, 2016, 10:50:08 pm

Title: How can I invalidate a row update?
Post by: jeremy on September 23, 2016, 10:50:08 pm
I'm adding a row to my table remotely but lets say it fails validation or some other check and I'm doing a delete/update/create operation. How can I instruct the grid NOT to show the row as modified.
Title: Re: How can I invalidate a row update?
Post by: jeremy on September 23, 2016, 11:09:20 pm
Only way I can think of is with refreshDataAndView but the row is deleted then added back in with the refresh.
Title: Re: How can I invalidate a row update?
Post by: paramvir on September 23, 2016, 11:36:25 pm
If validation fails locally, grid won't allow that value.

If something fails on the remote server, you can rollback.

http://paramquery.com/pro/api#method-rollback