on 02-18-2015 12:55 AM
Hopefully this is a very simple question, but just wanting to know what semantic navigation object/Action or alternative approach I should use to navigate back to the home page from a custom Fiori-like app.
e.g. I'd like to perform a message Toast at the same time as navigating back to the Launchpad at the end of a scenario.
I've read about using Window as one option, but I'm hoping there is a more official way of doing this.
Thanks,
Matt
Hey Matt,
I generally use:
window.history.go(-1);
window.history.go('URL');
Regards,
Tejas 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Sakthivel for this. Will assume this works and use this in the future solution (though I've ditched integrated FLP due to being on UI add-on SP10 where app-cache-buster isn't yet working (working in SP11). Must say I think Maksim's solution is a nice simple approach too (more intuitive than #) since this is one scenario where getCore() is perfect for integrated FLP apps.
Hello,
I am getting error while using this code
Error in Browser Console.
If you are in FLP just do
sap.ui.getCore().byId("homeBtn").onclick();
"emulate" click on Home button in shell header, lazy, I know, but works 😉
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.