call UndoChanges in OnBeforeUpdate

1 reply. Last post: November 24, 2011 10:53 PM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
davidpendryMember

Hi,

How can i get the row to return back to its previous state when in scope of OnBeforeUpdate..?


The code below does not work properly..


function OnBeforeUpdateNotify(controlId, tblName, rowObject) {
var WebGrid1 = ISGetObject(controlId);
var answer = confirm("Update data ?")
if (answer)
{
return true;
}
else {
rowObject.Row.UndoChanges(); // THIS CALL ERRORS
WebGrid1.Refresh();
return false;
}
}

All times are GMT -5. The time now is 5:53 AM.
Previous Next