Skip to Content

odata response: Responsibility assembling the HTML

HI all,

I am exercising Datamodel CDS and Service CDS on

https://developers.sap.com/group.scp-8-odata-service.html

The last chapters are dealing with oData. My question is: How do I get a HTML from a oData response? Is this done via JavaScript looping the oData. Or is there a serverside special technique (which I do not know, node.js???) that maps the oData into HTML and sends back to the client?

I appreciate your answers

Regards

Mario

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 13, 2018 at 01:20 PM

    you will not be able to return html from an odata service.. by definition, odata only returns atom/xml or json. the best way to accomplish what you need would be to get the json output from your odata in your client then via jquery, ui5, or any other client side library to get your html control/structure

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 13, 2018 at 01:21 PM

    hi Mario, please close the question if the answer above was what you needed.

    Add comment
    10|10000 characters needed characters exceeded