Hi, As per the API documentation, oData remove method success callback function should send an argument oData, but its coming as undefined and also can you please help me with "is it possible to pass additional arguments to callback function"?
deleteProduct:function(oEvent){
var sPath=oEvent.getSource().getBindingContext().getPath();
this.getModel().remove(sPath, {
context:sPath,
success:this._onDelSucc.bind(this),
error:this._onDelFail.bind(this)
}
);
},
_onDelSucc:function(oData,response){
//OData object value is coming as undefined.
//MessageToast.show("product "+response.requestUri.split("('")[1].replace("')","")+" deleted " );
},
_onDelFail:function( ){
MessageToast.show("product can't be deleted " );
}