on 04-29-2015 7:36 AM
Hello Experts,
I'm using a JSONModel in my SAPUI5 application.
The model data loading mode is synchronous and because of that I cannot use busyDialog (js is single threaded etc...).
I can change to model mode to asynchronous but in this case I'll have to use nested callbacks.
Can someone suggest a solution that avoids "callbacks hell" or still use synchronous model AND busy dialog.
Regards,
Omri
There should be no need for nested callbacks (only single callbacks) and I would avoid synchronous calls like the plague, because of the single threading issues you mentioned
Maksims approach should work just fine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
var bd = new sap.m.BusyDialog();
bd.open();
new sap.ui.model.json.JSONModel().loadData(
"http://adobe.github.io/Spry/data/json/object-02.js", null, false);
bd.close();
doesnt work???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.