Skip to Content

Consume xsjs service as xsodata

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 28, 2020 at 09:28 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.