Hi Karthik,
Thanks a lot for your quick reply.
I tried both the methods but looks like they are not working.
Please refer my code below.
var oModel = new sap.ui.model.odata.oDataModel("URI", false, userID, password);
| oModel.attachRequestCompleted(function(){ | |||
| sap.ui.getCore().byId("myApp").to("detail"); | |||
| }); |
| oModel.attachRequestFailed(function(evt) { | |||
| alert("Server error: " + evt.getParameter("message") + " - " + evt.getParameter("statusText")); | |||
| }); |
The control neither went inside attachRequestCompleted nor attachRequestFailed. Is anything wrong with my logic?
Regards
Nidhi







.jpg)


