Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

odata response: Responsibility assembling the HTML

Former Member
0 Likes
948

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

2 REPLIES 2
Read only

SergioG_TX
SAP Champion
SAP Champion
674

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

Read only

SergioG_TX
SAP Champion
SAP Champion
674

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