Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
In my SAP Fiori custom app, Back button is not working in Launchpad
When developing SAP Fiori custom applications, you may encounter issues where the Back button doesn't function properly within the Launchpad environment. This typically occurs due to incorrect navigation parameters in the CrossApplicationNavigation service.
Solution
The most effective solution is to use the shellHash property instead of the semanticObject property when implementing navigation. The shellHash provides a direct hash-based navigation approach that works more reliably with the Launchpad's back button functionality.
Example
Here's how to implement the navigation using shellHash ?
sap.ushell.Container.getService("CrossApplicationNavigation").toExternal({
target: {
shellHash: "#"
}
});
Why This Works
The shellHash property directly manipulates the browser's URL hash, which the SAP Fiori Launchpad uses to manage navigation history. When you use shellHash: "#", it navigates back to the Launchpad home, ensuring the browser's back button maintains the correct navigation stack.
In contrast, using semanticObject sometimes creates navigation entries that don't properly integrate with the Launchpad's history management, causing the back button to malfunction.
Conclusion
Using the shellHash property instead of semanticObject in your CrossApplicationNavigation service calls will resolve back button issues in SAP Fiori custom applications within the Launchpad environment.
