sapui5 - How do I pass a JSON object from one controller to another(/view to view)? -


i want pass json object 1 controller another. how do that?

or can pass omodel other view? if how do that?

thanks

if store data in global model:

var odata  = <your json data>; var omodel = new sap.ui.model.json.jsonmodel(odata); sap.ui.getcore().setmodel(omodel); 

it can accessed other controller/view in application context


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -