Skip to Content
Oct 03, 2016 at 08:51 AM

Busy Dialog in Worklist App pattern



I am working on a Worklist pattern based application based on the template from the SAP Web IDE.

We are on SAP UI5 1.28 and i am not using the json file based metadata definition and all and just using the Component.js to define Routes, Models etc.,

I have a requirement where i need to display the busy dialog upon calling a OData Service's create method.

I have Instantiated the model and set the busy dialog to show and close based on the requestSent and requestCompleted methods as shown below.

var oModel = new ODataModel(sServiceUrl, { json: true, loadMetadataAsync: true });

// Added for Busy Dialog var busyDialog = new sap.m.BusyDialog(); oModel.attachRequestSent(function(){;}); oModel.attachRequestCompleted(function(){busyDialog.close();});


Worklist.controller.js code

I have a oModel,create method to call the deep entity and it is not showing the busy dialog when the Model is trying to call the back end and waiting for response.

if (payload) {

this.getOwnerComponent().getModel().create("/ABCSet", payload, null, function onSuccess(oData, response) {

}, function onError(oData, response) {


How i can show the busy dialog during the OData call and before the response is returned.

Appreciate your support.