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

Pass data between views without eventBus?

$
0
0

hello!

I have two views and navigation between them works fine. However, now I want to also pass some data between them. I know that it's somehow possible to pass data as a parameter in app.to(), but how can I fetch this in the other view?

 

I have populated a variable (data) with information from a json-service.

 

Code:

 

 

var oModel = new sap.ui.model.json.JSONModel(data);
var oTiles = new sap.m.StandardTile({   icon : "{PictureURL}",      number : "{Price}",      title : "{Name}",  info : "{Brand}",  press : this.getController().tilePress  });

 

tilePress : function(evt) {  app = sap.ui.getCore().byId("app");  app.to("Info","flip");  }

 

Thanks in advance!


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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