Skip to Content
0
Feb 21, 2014 at 06:55 PM

Objects passed in Callback functions of Model

37 Views

hi

What are the object passed in the model's callback functions e.g. attachRequestCompleted / attachRequestFailed...I am trying to get the response code/status, the data etc on a model call

Does it send the status & the XHR object ?

var dataModel = new sap.ui.model.json.JSONModel();

dataModel.attachRequestCompleted(function(data,textStatus,jqXHR){

});

dataModel.attachRequestFailed(function(object){

<<<>>>>

})

Thanks

Sandip