Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

attachRequestCompleted behaviou

Hi Guys,

I implemented an ODate request and attached a RequestSent and a RequestCompleted eventhandler. The first calls a function to show a BusyDialog and the second one calls a function to close the BusyDialog.

The request has the following timing:

The waiting time can be something between 7s and 15s (I know that this is quite some time^^).

My Problem is, that the SDK states the following:

The 'requestCompleted' event is fired, after a request has been completed (includes receiving a response), no matter whether the request succeeded or not.

In my opinion this means, that my RequestCompleted event would be called after the waiting and download time. Strangely though, it gets called right away and I do not see any BusyDialog.

This is some of my code:

var model = sap.ui.getCore().getModel();



handleRequestSent : function () {

  bs = new sap.m.BusyDialog("busybusy");



handleRequestCompleted : function () {

  bs = sap.ui.getCore().byId("busybusy");




Can anybody explain this behaviour to me ?


Former Member

ODataModel fires RequestCompleted event in 3 places and only one of them is for successfull call.

handleRequestCompleted : function (evt) {

//evt.success - if true;


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question