title: Setting busy indicator after button press
body: <p>I have a simple scenario, a button is pressed and the function onSearchExisting is executed. In the function I open a dialog which contains a table. The data for the table I fetch in the onSearchExisting function. Since the data fetching takes some time, I would like to set the button which triggers this function to busy.
  The code looks like this in the function:</p>
  
  <pre><code>onSearchExisting : function() {                                                 
      var oButton = this.getView().byId("searchButton");
      oButton.setBusy(true);
      oButton.setBusyIndicatorDelay(0); 
  
      var oView = this.getView();
      var oDialog = oView.byId("dialog2ID");  
      if (!oDialog) {
          oDialog = sap.ui.xmlfragment(oView.getId(),"xxx.view.fragment.SearchExisting",this);
                                              oView.addDependent(oDialog);
       }
  
       var oDataModel = new 
       sap.ui.model.odata.ODataModel("/sap/opu/odata/xxxx", true);
       this.getView().byId("tableSearchFrgId").getBinding("items");
  
       oButton.setBusy(false);    
       oDialog.open();
   },
  </code></pre>
  
  <p>The button is not set to busy, when I press it, what am I doing wrong?</p>