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

Routing Issue in Cross App Navigation - Custom Fiori Apps

$
0
0

Hi, I'm trying to fix a major issue in another developer's code. Explaining the scenario and issue below. Any help towards a solution would be appreciated, thanks!

 

Apps and screens involved in the issue:

Custom Fiori App 1 : Screen 1 (single view) , Screen 2 (master & detail view)

Custom Fiori App 2 : Screen 1 (master & detail view)

 

Navigation To: In App1, on click of a button in Screen 1's footer, navigation is happening to Screen 2 in the same app. Now on click of a button in Screen 2's footer, the navigation is happening to App 2. - this is working fine.

Navigation back: On click of the back button in the master page header, the navigation is supposed to happen to Screen 2 in App 1 since the user just came from there. But it is not working that way. It is going to Screen 1 of App1. Here is the code of the back function:

 

onBack:function()

{

  this.oRouter.detachRouteMatched(this.handleNavTo, this, this);

  var oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");

  oCrossAppNavigator.toExternal({

  target: {semanticObject : "ZManageAccount", action: "displayMangeAccount" }

  });

}


Viewing all articles
Browse latest Browse all 3668

Trending Articles



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