Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 2136

Navigation with SplitApp

$
0
0

Hi,

 

i have a navigation problem with the split app. The problem is only relevant in mobile layout. After navigating to the details page i can not navigate back to the master page. Unfortunately this happens only when i'm starting with a clean get request. When i request the page with F5 everything works.

In my app i have a masterpage which contains the split app.

 

Shell.view.xml

<SplitApp id="splitApp" />

 

Inside i have also the master and details views with the following routing:

routing : {  config : {  routerClass : "sap.m.routing.Router",  viewType : "XML",  viewPath : "view",  targetAggregation : "detailPages",  controlId : "splitApp",  bypassed : {  target : [ "master", "empty" ]  }  },  routes : [ {  pattern : "",  name : routeNames.MASTER,  target : [ "master", "empty" ]  }, {  pattern : "id/{id}",  name : routeNames.DETAIL,  target : [ "master", "object" ]  } ],  targets : {  master : {  viewName : "MasterPage",  viewLevel : 1,  controlAggregation : "masterPages"  },  object : {  viewName : "DetailsPage",  viewLevel : 2,  controlAggregation : "detailPages"  },  empty : {  viewName : "Empty",  viewLevel : 3,  controlAggregation : "detailPages"  }  }  }  },

In the detail page i only call.

onNavBack : function() {
splitApp.backMaster();
}

Can somebody please explain this behaviour?


Viewing all articles
Browse latest Browse all 2136

Trending Articles



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