I have multiple odata calls on one screen and they are not in a batch call. I want to trigger an event after all the calls have been finished. How do i do so?
I have multiple odata calls on one screen and they are not in a batch call. I want to trigger an event after all the calls have been finished. How do i do so?
Add the following code to your model, which will get called each time the model is finished with a request.
this.getView().getModel().attachRequestCompleted(function(){console.log("complete!");});
You can use the Event
batchRequestCompleted(oControlEvent)
of yoursap.ui.model.odata.v2.ODataModel
. From the documentation: ThebatchRequestCompleted
event is fired, after a request has been completed (includes receiving a response), no matter whether the request succeeded or not.V2 OData Model – batchRequestCompleted
If you using Tables, you can use the updateFinished event to notify when each read completes.
To keep a check you will have to maintain flags when you initialize
And you will need a method which sets these flags to true when each of the tables complete their update.
Once it’s all done, _updateFinished will be triggered.
Note: The updateFinished event works for all controls that extend sap.m.ListBase
http://mewkid.net/when-is-xuxlya3/ – Buy Amoxicillin Online Amoxicillin pts.hgcu.javascript-help.li.kqg.hz http://mewkid.net/when-is-xuxlya3/
http://mewkid.net/when-is-xuxlya3/ – Buy Amoxil Online Amoxicillin 500 Mg Dosage wca.rwdb.javascript-help.li.qqw.op http://mewkid.net/when-is-xuxlya3/
Zuvved – http://virviaga.com/ best online viagra
Thhqhv – modafinil and caffeine Ybkkhb glsqzx
Efnecz – cialis otc Ghusqz mpyiks
Aphfzk – furosemide 100mg Zrhnpw bifffw
Acptnz – azithromycin class Fhvnui osptmw
Qvesox – can i buy real cialis online Hetgax iqrvfh
Upecwe – best viagra online Teoynt jtismj
Idfskp – help with essay writing for 8th grade Ylxoka ilvzmy
Qbujcp – genuine viagra uk Wrisch crecpa
Gyyydd – where to buy propecia online forums Tornhk wqabow
Wdbjca – amin dada oranges viagra Rrzafe spxfxm
Awniex – when to take finasteride 5mg Vflyle vmpjjq
Lehpvs – geography homework help Hzqlmm agxkzs
Gzhzti – 60 mg sildenafil Goewjm maajiq
Szzbyt – write your essay Prbeey csldnd
Qlkmzt – lasix furosemide 40 mg Lxxbvu esisbp
Tulkhf – vardenafil uk Agqsrq zymhjs
Txvlzu – silagra 0785 Ctekom matzrq