Hi Experts,
I have implemented the blog article Consume NetWeaver Gateway services via SAPUI5 - Part 1 given at http://scn.sap.com/community/developer-center/front-end/blog/2012/10/15/consume-netweaver-gateway-services-via-sapui5 by Ivan Fermia.
I am working on NWDS 7.3 SP08 PAT0003 and I have installed SAPUI5 toolkit (version 1.8.4) within my NWDS.
As suggested by Raul Romero in the comments section, I added a prefix into the Gateway Service URL and wrote '/proxy/http://gw.esworkplace.sap.com/sap/opu/odata/IWBEP/RMTSAMPLEFLIGHT_2'
instead of 'http://gw.esworkplace.sap.com/sap/opu/odata/IWBEP/RMTSAMPLEFLIGHT_2'
Also according to Kaloyan Raev's suggestion in the comments section, I replaced the line
oTable.bindRows('FlightCollection');
with oTable.bindRows('/FlightCollection'); by writing a leading slash before FlightCollection.
I am running this application from NWDS by right clicking on my SAPUI5 Application Project and selecting Run As -> Web App Preview as shown below.
On doing this it opens up web browser within NWDS, but it des not show any data in the table, just a blank table as shown below.
I am seeing the same result (blank table with no data) even if I copy-paste the URL in Internet Explorer 8 and Mozilla Firefox 18.
Can anyone please guide me in knowing why I am not able to fetch any data from the online demo gateway system? Is it that I cannot run this application from NWDS and have to do it from Eclipse IDE only?
Any suggestions will be highly appreciated.
Thanks & Regards,
Saurabh