Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8695

Re: SAPUI5 XML views

$
0
0

Hi Sethil,

Have you tried loading a second model (datasource) and set to the view. Something like this:

var oModel = new sap.ui.model.json.JSONModel("test-resources/sap/ui/demokit/explored/products.json");
this.getView().setModel(oModel,"firstmodel");
var oModel2 = new sap.ui.model.json.JSONModel("whatever url to your second data");
this.getView().setModel(oModel2,"secondmodel");


And then have your controls binding to the source of your choice like this:

text="{firstmodel>/ProductId}"

 

regards

Sven


Viewing all articles
Browse latest Browse all 8695

Trending Articles



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