on rollback - data present in the grid must not change

if the data is successfully update in data base then i m sending the below action

If data is not updated in data base or rollback then i m sending the below action


my problem is that when data is rollback then the data present in the grid must not changed it’s status. Hence data is not saved in database but it’s updatedRows array contains nothing. still the modified row is marked but when i m trying to submit again nothing is happening…
i means the data should be submitted again when user will press save button.

lazyGridDataProcessor.defineAction(“successful”,function(response){
lazyGridDataProcessor._in_progress = {};
lazyGridDataProcessor.updatedRows = [];
var msg = response.getAttribute(“msg”);
f_showMessageBox(msg);
});
lazyGridDataProcessor.defineAction(“error”,function(response){
var msg = response.getAttribute(“msg”);
f_showMessageBox(msg);
});

Change your code as

lazyGridDataProcessor.defineAction(“error”,function(response){
var msg = response.getAttribute(“msg”);
this.set_invalid(response.getAttribute(“sid”),false); //will clear error status from the row
f_showMessageBox(msg);
});