onBeforeUpdate

fires before sending data for item update

void onBeforeUpdate(id id,object details){ ... };

Parameters

ididthe old ID of the related item
detailsobjectthe object which holds the state of data saving

Example

dp.attachEvent("onBeforeUpdate", function(id, details){
    //... some code here ... 
});

Details

1 . The id parameter contains old client-side item ID.

2 . The details parameter contains data saving details, e.g.:

  • data - data item object;
  • id - old (clientside) ID;
  • operation - the type of operation ("update").
See also
Back to top