on 2020 Jul 28 8:23 AM
Hello Everyone,
How to get the metadata in .xsjs service.
For Ex:
I have been consuming two odata services from different systems and consolidating the result from 2 response into single response through xsjs service.
When I am binding this xsjs service response to UI5 smart table, it fails as smart table works with proper metadata.
So is there a way to make my current service response from xsjs service to be exposed as proper metadata response.
or can anyone suggest how the xsjs response to work on smart table.
Hi Prem,
Technically, XSJS service can work with UI5 OData model if you provide a valid EDMX (metadata) file to it.
I have posted a blog on creating a function import using XSJS:
https://blogs.sap.com/2018/06/11/how-to-implement-function-import-in-hana-xs/
The condition is that if you use UI5 OData model (not particularly the smart table control), then you must abide by the specification of OData Protocol. If you are able to follow the specification, then the use of smart control will work.
Having said that, there's a lot of coding work for you to do to make this happen. I probably won't take that path unless there's a strong justification to do so.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
9 | |
8 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.