Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

SAPUI5 oModel.getJSON() isn't working when I use a JSON file as origin

$
0
0

I created my Model using a JSON file.

var oModel =new sap.ui.model.json.JSONModel( jsonFileUrl );//JSON from file

It worked and the element was populated as I wanted. But after this, when I tried to use oModel.getJSON() to get the JSON data it didn't work.

If I use an variable with the same content as the file, it works!

You can check the full test that I created:
https://googledrive.com/host/0B2gJUv6a_V1dYnNSV0ZsTFhxazg/index.html

Is there anybody to help me to understand what on Earth is happening here?


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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