Documentation

onBeforeUpdate

fires before sending data for item insertion

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

Parameters

ididold id of related item
detailsobjectobject which holds state of data saving

Example

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

Details

1 . The id parameter contains old (clientside) item ID.

2 . The details parameter contains data saving details, namely:

  • data - data item object;
  • id - old (clientside) ID;
  • operation - the type of operation ("update").

See also

Back to top