Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8623

Fiori - Cross Application Navigation

$
0
0

Hello everyone,

 

I want to navigate between the applications in launchpad. I have found with lot of searching that, through CrossApplicationNavigation in ushell is the way. Here is the link to documentation (SAPUI5 SDK - Demo Kit)

 

Each application in launchpad has 'semantic object' and 'action' for further navigation.


I have followed documentation and written following piece of code to create CrossApplicaionNavigation service.   


var fgetService         =  sap.ushell && sap.ushell.Container && sap.ushell.Container.getService;

this.oCrossAppNavigator = fgetService && fgetService("CrossApplicationNavigation");

 

Just to make sure that oCrossAppNavigator service is properly initiate wrote following code.

var hashForApp =  this.oCrossAppNavigator.hrefForExternal({

                         target : { semanticObject : "SalesOrder",action : "create" }

                 });

console.log("Hash for the application: " + hashForApp);

 

Console Output: #SalesOrder-create

 

So knowing the service works, I wrote following code to navigate to the "SalesOrder" application and to the "create" action.

this.oCrossAppNavigator.toExternal({

        target : { semanticObject : "SalesOrder",action : "create" }

});


Here is the my issue. Above statement neither goes to the SalesOrder application nor prints any error in the console.

It supposed to update the URL with the above hash code and go to that application.


Note: Manual changing of URL with the above hash code correctly going to SalesOrder application.

 

Thanks in advance,

venu

 

Masayuki Sekihara

Message was edited by: v g


Viewing all articles
Browse latest Browse all 8623

Trending Articles



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