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
Post a Comment