简体   繁体   English

Fiori Launchpad 上 SAPUI5 应用程序的映射 URL 不正确

[英]Incorrect mapping URL of SAPUI5 app on Fiori Launchpad

I have two SAPUI5 apps and they both are working well, but there is a problem with them on Fiori launchpad.我有两个 SAPUI5 应用程序,它们都运行良好,但它们在 Fiori 启动板上存在问题。 The initially opened app gets the correct url to our rest service (.json), but after I click the Home button and go to the second app the url gets put together incorrectly, because the resource-path of the second App still contains the folder of the initial App.最初打开的应用程序获取到我们的休息服务 (.json) 的正确 url,但是在我单击Home按钮并转到第二个应用程序后,该 url 被错误地放在一起,因为第二个应用程序的资源路径仍然包含文件夹最初的应用程序。

1. .../app1folder/app1resource
2. .../app1folder/app2resource 

Correct would be:正确的应该是:

2. .../app2folder/app2resource 

The resources we use are created as destinations in the SAP HANA Cloud Platform Cockpit>Connectivity>Destinations我们使用的资源在 SAP HANA Cloud Platform Cockpit>Connectivity>Destinations 中创建为目的地

Neo-app.json新应用程序.json

{
      "path": "/app1resource",
      "target": {
        "type": "destination",
        "name": "app1"
      },
      "description": "app1 API"
    }

How can I manually change the "appfolder"-directory (app1folder, app2folder)?如何手动更改“appfolder”目录(app1folder、app2folder)? Or is it automatically created by the fiori launchpad and unaccessible?还是由 fiori 启动板自动创建并且无法访问?

My application is built from scratch and not generated and maybe there's a common mistake.我的应用程序是从头开始构建而不是生成的,可能存在一个常见错误。

Thank you.谢谢你。

Problem: Both apps had the same id and as a result the launchpad couldn't load the applicationfiles into the scope.问题:两个应用程序具有相同的 ID,因此启动板无法将应用程序文件加载到作用域中。

Solution: I changed the app id and all related references in the controllers, modules... .解决方案:我更改了控制器、模块...中的应用程序 ID 和所有相关引用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM