Hello Experts,
i'm developing a ui5 application with multiple pages. For navigation i would like to use routing. I'm familiar with the concept of routing and used this a few times before.
In my actual case i would like to navigate from a list page to a detail page. By pressing a table item, the item should be displayed in a new page in detail.
Without routing i know the mechanism to navigate to the target and set the bindig context to the target view.
But how does this work with routing? How to set the binding context to the target view by using the routing mechanism?
The navigation from OrderList to OrderDetail looks like this. The navigation to OrderDetail works fine, the model is bound to the App.
onListItemPress : function(oEvent){ var oContext = oEvent.getSource().getBindingContext("FertAuf"); var router = sap.ui.core.UIComponent.getRouterFor(this); router.navTo("OrderDetail", null, false); }
Thanks