Skip to Content
0
May 20, 2016 at 03:35 PM

Setbusy not executing...

440 Views

I have setBusy exucuted elsewhere in my application, but why not here.......



_onRouteMatched: function (oEvent) {

//initialise display
var view = this.getView();
view.setBusy(true);

view.byId("shopInput").setValue("");
view.byId("effectiveDateFrom").setValue("");
view.byId("shop24Hrs").setSelected(false);
view.byId("shopClosed").setSelected(false);
view.byId("createNext").setVisible(false);
view.byId("createSubmit").setVisible(false);
//view.byId("createSave").setVisible(false);

// initialise the store view model
var oModel = this.getModel("site");

this.getModel().read("/SiteSet", {

success: function (oData) {

var oSiteData = oModel.getData();
oSiteData.Sites = oData.results;
oModel.setData(oSiteData);
}.bind(this)

});
view.setBusy(false);

},