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.
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.
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