SAPUI5 - 通过component.js打开新应用程序
我正在开发一种Launchpad do Fiori,但使用来自Sage X3的数据。 你知道如果有可能有2个本地aplications通过Component.js调用另一个吗?SAPUI5 - 通过component.js打开新应用程序
你能帮我吗?
问候
请看看下面的SO质疑Fiori - Cross Application Navigation这个SCN博客Cross Application Navigation between SAPUI5 applications。
简而言之,您必须在“真正的”Fiori Launchpad中运行应用程序,或者必须在本地Fiori沙箱中运行这两个应用程序(如果您使用的是WebIDE)。然后,您可以使用CrossApplicationNavigation服务从一个导航到另一个导航,从而使用应用程序的的语义对象。沿线:
// You should also check if the sap.ushell.Container exists before this
sap.ushell.Container.getService("CrossApplicationNavigation").toExternal({
target: {
semanticObject: "Your target object",
action: "The action for the object"
},
});
要获得您的WebIDE测试环境,您应该看看这个文档:Testing Multiple SAP Fiori Applications。
我没有语义obect,因为我正在适应其他数据库系统的Fiori应用程序。 因此,在启动板中,我创建了一个简单的页面,用户在其中进行登录,然后为两个页面显示两个图块。在这种情况下,我只想在本地访问我在同一页面中存在的两个不同页面。我可以用你的建议? –
你想要的代码是什么? –
我在找,但我找不到任何东西。所以我想知道是否可以做到这一点。我唯一的代码是模仿启动板 –