Skip to content
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

sap.ui.model.odata.v2.ODataModel.getServiceMetadata() not working #564

Closed
sfdfklskldf opened this issue Aug 11, 2015 · 2 comments
Closed

Comments

@sfdfklskldf
Copy link

It seems not possible to load service metadata in sync with v2 ODataModel.
In ODataModel code I detected following line:
this.bLoadMetadataAsync = true;
If I set the value to false (in debugger) the method works.

Using a parameter in the constructur has no effect.
So it looks like a bug in the code and/or in the documentation.

Compare following pages:

This problem seems to be true since SAPUI5 1.26.6 till current beta of OpenUI5.

My problem is to convert an application to use the new model but during the first step I need the metadata loaded in sync.

I would ask you to update the code and/or the documentation.
See also: http://stackoverflow.com/questions/31938755/getting-service-metadata-of-sapui5-v2-odatamodel

@TobiasOetzel
Copy link
Contributor

Hi,

i agree the documentation in the developer guide is mssleading - the async nature of getMetadata() is not described there.

I forwarded it to the responsible developer
internal ticket reference: 1570807301

Best regards,
Tobias

@loginger
Copy link
Contributor

Hi,
loading the metadata synchronously is not supported with v2.ODataModel anymore due to blocking of UI. I will adapt the documentation.
BR,
Jan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants