on 11-30-2016 10:46 AM
Hey experts
I was wondering if there was any way you can wait for the vizframe to be on the screen. I used the following methods onAfterRendering en renderComplete. They both get called too soon. Usually the vizframe takes 3-5 seconds to load. But I can't use any form of timers. Anyone have any idea what I can use?
kind regards,
Matthijs
Hi Matthijs,
please try this:
oVizFrame3.getModel().attachRequestSent(function() { sap.ui.core.BusyIndicator.show(0); }); oVizFrame3.getModel().attachRequestCompleted(function() { sap.ui.core.BusyIndicator.hide(); });
Regards, Uladzislau
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is the method I used, if anyone knows any better way to check, please
tell me
waitVizRender: function(oVizFrame) {
var bRendering = true;
oVizFrame.addEventDelegate({
onBeforeRendering: function() {
if (bRendering === true) {
sap.ui.core.BusyIndicator.show(0);
}
}
}, oVizFrame);
oVizFrame.addEventDelegate({
onAfterRendering: function() {
oVizFrame.getModel().attachRequestCompleted(function() {
sap.ui.core.BusyIndicator.hide();
bRendering = false;
});
}
}, oVizFrame);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.