Skip to Content

busy dialog for combobox

hi experts,

am using dialog box, it taking some time load the items can i give busy dialogbox until loading the items

thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 28, 2016 at 09:22 AM

    Hi Madhu,

    You mean something like this? JS Bin - Collaborative JavaScript Debugging

    I have added a delay of 3 seconds to show the busy dialog. But normally afterOpen event will get hit when the dialog content is ready.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 28, 2016 at 06:57 AM

    Hi Madhu,

    You can use busydialog when you want to perform some action.

    Please check the sample piece of code below:

    var busy = new sap.m.BusyDialog({text:"Please Wait"})

    then after you getting the data.

    then you need to close the busy dialog busy.close();


    Deepak Raj.

    Add a comment
    10|10000 characters needed characters exceeded

    • HI Madhu

      Please take a look:

      onInit: function() {

      var bsy = new sap.m.BusyDialog({text:"Please Wait"});

      var oModel = new sap.ui.model.odata.v2.ODataModel("proxy/http/");

      //new sap.ui.getCore().setModel(oModel,"data12");


      requestUri : "proxy/http/",

      method : "GET",

      headers : {

      "X-Requested-With" : "XMLHttpRequest",

      "Content-Type" : "application/atom+xml",

      "DataServiceVersion" : "2.0",

      "X-CSRF-Token" : "Fetch"



      function(data, response) {

      header_xcsrf_token = response.headers['x-csrf-token'];

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


      var id = sap.ui.getCore().byId("lst");



      var oHeaders = {

      "x-csrf-token" : header_xcsrf_token,

      'Accept' : 'application/json',


      }, function(err) {

      var request = err.request;

      var response = err.response;

      alert("Error in Get -- Request " + request + " Response " + response);



      In this example i am using northwind services for the data.after setting the data to the model and passing the model to the list then i am closing the busy dialog.


      Deepak Raj.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.