on 2020 May 27 7:35 AM
Hello Everyone
Greetings of the day!
I am unable to solve my issue can anyone help me out for solving this issue.
In my application I have two views. In the second view when I click on the FIori nav back button i need to add some Warning message when the user is not saved his data. And when user clicked on OK button of dialog it should navigate to the first view. It is navigating. My problem is when i click on the FIori nav back button on First view it is not navigating to the FLP Home screen.
I tried this link but unable to solve
Thanks in advance
Anusha
Hi,
Add below code in your manifest:
...
"sap.ui5": {
"services": {
"ShellUIService": {
"factoryName": "sap.ushell.ui5service.ShellUIService"
}
}
...
}
...
and below code in controller:
this.getOwnerComponent().getService("ShellUIService").then(function(oShellService) {
oShellService.setBackNavigation(function() {
//either do nothing to disable it, or add your own nav back logic for having the navigation
});
});
Regards
Anmol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anmol,
i tried this in my application to go to FLP directly than previous view. i put below code inside setbacknavigation method.
sap.ushell.Container.getService("CrossApplicationNavigation").toExternal({ target: { // semanticObject: "" shellHash: "#" } });
how do i put the logic of navigating back to FLP without the below error?
the URL "# " is not compliant. It may break the product and cause unwanted navigation behavior."
after this error, the entire FLP becomes inaccessible or stuck or no tile works.
i am getting this error. how do i go back to the FLP from my 3rd level view to FLP directly with this button?
thanks,
Soumya
Hi Anmol I tried this but onAfterrendering is not getting called when click on back button. Any advice
onAfterRendering: function() {
this.getOwnerComponent().getService("ShellUIService").then(function(e) {
e.setBackNavigation(function() {
sap.ui.getCore().byId("shellAppTitle").setText(this._getText("headertitle"))
})
})
User | Count |
---|---|
69 | |
11 | |
10 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.