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

Question on sap.ushell - sap.ushell.Container is undefined

$
0
0

Hy everybody,

 

i'm currently trying to navigate to another fiori application. I would like to use CrossApplicationNavigation Service of sap.ushell.Container. The navigation should be triggerd by a button press in the application.

 

Now i would like to describe my problem:

In the press="" function of the button (Marked green in the printscreen), i only have sap.ui and sap.m object available.

button.png

 

If i enter this variable (sap) in the console, when the app is loaded, the console shows that ushell_abap, fiori, and ushell are available.

 

At the moment i don't understand, why the variable sap is different in the press="" method of the button. In the press="" function onNavigateToNextApp, sap.ushell.Container is undefined and i do not realy get why.

 

This is the printscreen of the chrome console.

ushell.png

 

If somebody could give me a hint or a tip how to it comes that sap differs in these two spots i would really apreciate that.

 

Help will be rewarded with points.

 

Best regards,

Michael


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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