[英]How to get to Fiori Launchpad with back button in custom App?
I am not able to get the back button in my custom Fiori-like app to work.我无法让我的自定义 Fiori 类应用程序中的后退按钮工作。 I have added my app to the Fiori Launchpad and tried following code in the press-event:我已将我的应用程序添加到 Fiori Launchpad 并在新闻事件中尝试了以下代码:
var oCrossAppNavigator = sap.ushell.Container
.getService("CrossApplicationNavigation");
oCrossAppNavigator.toExternal({
target : {
semanticObject : "#"
}
});
This is not working for me.这对我不起作用。 I know there is a Home button but I would like my app to behave like the standard Fiori apps.我知道有一个主页按钮,但我希望我的应用程序像标准的 Fiori 应用程序一样运行。
Following code works but feels like some sort of dirty hack to me:以下代码有效,但对我来说感觉像是某种肮脏的黑客:
window.history.go(-1);
Installed UI5-Version is 1.28.8已安装的 UI5 版本为 1.28.8
Thanks for your help!感谢您的帮助! :) :)
You can make it work by using the shellHash
property instead of semanticObject
:您可以使用shellHash
属性而不是semanticObject
使其工作:
sap.ushell.Container.getService("CrossApplicationNavigation").toExternal({
target: {
shellHash: "#"
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.