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

Re: View doesn't reloads according to different data in Routing!!

$
0
0

...and that;s the whole point; since you don't bind data when navigating, how would Page B know which item in Page A you have clicked? This is most likely why you still get the same results

 

In your Page B, i would have expected something like:

 

onInit: function () {  var oRouter = sap.ui.core.UIComponent.getRouterFor(this);  oRouter.getRoute("myDetailRoute").attachPatternMatched(this._onObjectMatched, this);
},
_onObjectMatched: function (oEvent) {  this.getView().bindElement({  path: "/" + oEvent.getParameter("arguments").myCustomerIdField  });
}

Slightly offtopic, but why are you reading an ODataModel and storing the results in a JSONModel? Why not use the ODataModel directly?


Viewing all articles
Browse latest Browse all 2106

Latest Images

Trending Articles



Latest Images

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