...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?





.jpg)



