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

Binding Context and Routing

$
0
0

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


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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