![](/img/trans.png)
[英]SAP Fiori Launchpad Custom App Error: Cannot instantiate object: “new” is missing
[英]How to get to Fiori Launchpad with back button in custom App?
我无法让我的自定义 Fiori 类应用程序中的后退按钮工作。 我已将我的应用程序添加到 Fiori Launchpad 并在新闻事件中尝试了以下代码:
var oCrossAppNavigator = sap.ushell.Container
.getService("CrossApplicationNavigation");
oCrossAppNavigator.toExternal({
target : {
semanticObject : "#"
}
});
这对我不起作用。 我知道有一个主页按钮,但我希望我的应用程序像标准的 Fiori 应用程序一样运行。
以下代码有效,但对我来说感觉像是某种肮脏的黑客:
window.history.go(-1);
已安装的 UI5 版本为 1.28.8
感谢您的帮助! :)
您可以使用shellHash
属性而不是semanticObject
使其工作:
sap.ushell.Container.getService("CrossApplicationNavigation").toExternal({
target: {
shellHash: "#"
}
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.