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

Re: How to pass table data from one controller to other in UI5?

$
0
0

quick dirty way 1:

in view one

sap.ui.getCore().setModel(yourModel, "yourmodelname");

in your second view controller(init), 

var oModel= sap.ui.getCore().getModel( "yourmodelname");

this.getView().setModel(oModel)

 

quick dirty way 2:

when you initially create the model, do like this

myglobalModel=**create your model*****

 

in your second view controller(init), 

 

this.getView().setModel(myglobalModel)


Viewing all articles
Browse latest Browse all 2175

Trending Articles



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