I am trying to populate a screen with table data. I have existing code that is doing this for other UI5 screens developed in xs using xsjs, odata, html.
The existing code has the following odataservice that is calling each table.
I am trying to add new odataservice and call the table but am unable to do so. I read that you can call a HANA table as a runtime object or design time object. The existing code is calling the tables as a runtime object using ::
namespace"A.B.C.services" {
"A.B.C.syndata::Tablename"as"xxxx";
How do I call a new table and write a similar .xsodata code? I am unable to understand what this syndata is. I see it as a folder with no expansion option in Dev perspective and as a package in Modeler perspective.
The structure is as follows:
data
procedures
services
syndata
mainfolder_actualcode
Also, I read this blog and am trying to test an xsodata file in the browser. I get 404 error.
The path I used is
http://hostname:8070/Package.Subpackage1.Subpackage2/services/odatafilename.xsodata
I got the hostname and port no, instance number from HANA System-XS Properties.
I am new to XS and Javascripting and I am trying to read blogs and the developer guide but I dont have time and am unable to figure this out. Please respond soon as I have to complete this asap. Any ideas or suggestions will be very helpful.
Thank you!!