Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3131

SAPUI5 app on HANA CP with external json source

$
0
0

Hello.

 

Being a newbie, apologies if the question is naive.

 

I have been working locally on my laptop building a simple SAPUI5 app (simple master/detail app with a json feed coming from an external url).

 

The external url that provides the JSON feed is done through a php script. I can control because it is served from a site I own. I have been able to resolve the cross domain issues and locally (on my laptop) can run the app successfully without needing to be in - disabe security - mode.

 

I invoke the json feed in my app as below:

 

// Using a local model for offline development

  var oModel = new sap.ui.model.json.JSONModel("http://link.to.my domain/script.php");

  oView.setModel(oModel);

 

Using this php script, again locally it all works. However when I push it to the SAPHCP, it no longer works.

 

I have tried to replace the json feed with a local file, and that works OK.

 

Is there something I need to do to be able t consume that external feed?

 

Any information is greatly appreciated.

Thanks


Viewing all articles
Browse latest Browse all 3131

Trending Articles



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