Posted 12 January 2021, 3:47 am EST
I am using ODataCollectionView and my backend is sending annotations as part of the metadata properties. I would like to access the schema (returned by the call to $metadata). Is it possible?
Forums Home / Wijmo / General Discussion
Posted by: paulr on 12 January 2021, 3:47 am EST
Posted 12 January 2021, 3:47 am EST
I am using ODataCollectionView and my backend is sending annotations as part of the metadata properties. I would like to access the schema (returned by the call to $metadata). Is it possible?
Posted 12 January 2021, 11:25 pm EST
Hi Paul,
The ODataCollectionView sents a request to the Odata server and uses the response internally. There is no way to access the response outside of ODataCollectionView.
If you require to use the metadata, you may need to call your OData server manually using the wijmo.httpRequest method.
https://www.grapecity.com/wijmo/api/index.html#httprequest
Regards,
Ashwin