Einfacher Kniff zum setzen eines Busy Indicators einer Anwendung bei allen laufenden OData-Requests. Macht gerade Sinn bei laufzeitintensiven Anwendungen. Viele Wege führen zum Ziel… wie sooft 🙂
Ein Weg hat in meinem Use Case geholfen und alles erschlagen was nötig war. Nämlich bei allen OData-Requests einen Busy Indicator anzeigen und die Daten nicht asynchron zu laden, damit es nicht zu Verwirrungen kommt.
onInit: function () {
this.getView().getModel().attachRequestSent(function() {
sap.ui.core.BusyIndicator.show(100);
});
this.getView().getModel().attachRequestCompleted(function({
sap.ui.core.BusyIndicator.hide();
});
}
![Share on Facebook Facebook](https://sascha-dev.de/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/facebook.png)
![Share on Twitter twitter](https://sascha-dev.de/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/twitter.png)
![Pin it with Pinterest pinterest](https://sascha-dev.de/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/pinterest.png)
![Share on Linkedin linkedin](https://sascha-dev.de/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/linkedin.png)
![Share by email mail](https://sascha-dev.de/wp-content/plugins/social-media-feather/synved-social/image/social/regular/48x48/mail.png)
Sei der Erste der einen Kommentar abgibt