Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2796

How to Consume XSODATA service in SAP WebIDE

$
0
0

Hi Everyone,

 

I have created a application with template "Empty application (with XSAccess and XSApp)" developed a xsodata service in SAP WEB IDE.

Similarly, I created another application of template "SAP UI5 Hello World", I modified this Hello World example in such a way to display table with data.

So far is good.

Here I created 2 different applications in the same package. IS it Correct?

 

I would like to consume xsodata service into this UI5 application, to display the data in my table.How can we do that?

PS: I am using SAP Web based WorkBench (SAP Web IDE)

 

Below is the code I have used in UI5-Index.html page

 

var oModel=new sap.ui.model.odata.ODataModel("https://s12hanaxs.hanatrial.ondemand.com/********trial/hihanaxs/myproducts/services.xsodata/"

,false);

oTable.setModel(oModel);

oTable.bindRows("/Services");

oTable.placeAt("uiArea");

 

 

 

 

 

Below is the screenshot for the odata service

 

 

 

Capture.PNG

Thanks&regards,

Sriram.


Viewing all articles
Browse latest Browse all 2796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>