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
Thanks®ards,
Sriram.