-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSONModel: Make pSequentialImportCompleted public API #2213
Comments
Hi @DerGuteWolf, thanks for bringing this to our attention. We are tracking this internally as 1880574213. |
Hey @DerGuteWolf, Could you please provide us with an example (e.g. via https://plnkr.co/) that showcases this problem? That would help us a lot. Thanks and best regards, |
Hi @RandomByte , a public example is a bit difficult. The JSON models we use are the SCP HTML5 userapi and an HANA xsjs JSON service. Both vary in the timing enough, so the attachRequestCompleted for these models sometimes works and sometimes does not work. I will try to make an example with some public JSON services. |
Hi @RandomByte , |
Thanks, I forwarded this information to the responsible developer. He'll be in contact with you soon. |
Hi @RandomByte , |
Hi @DerGuteWolf, sorry for the late response. We've been working on this and the issue somehow slipped through my fingers lately. We have a pending commit which will introduce a dataLoaded() function on the JSONModel. I guess we will merge this in the next days. Regards, |
Hi @Thodd, thanks for the update. Please make sure, that this also works für models loaded through the manifest. From your description this seems to be possible, however I wanted to draw your attention to this use case, as we have most problems with it. |
Hi again @DerGuteWolf, The dataLoaded function should solve your issue, when accessing the model after it's creation from the manifest. Internally the JSONModel also calls loadData, which now returns a promise which resolves based on the sent request. BR, |
OpenUI5 version: 1.52/1.56
When defining JSON Models in the manifest.json with a remote URI, it is difficult in a controller to make sure that the data has actually been loaded. When the data has already been loaded when attachRequestCompleted is called, this is never fired.
You have already an internal property pSequentialImportCompleted providing a Promise which would solve this problem. Could you make this Promise officially available?
The text was updated successfully, but these errors were encountered: