简体   繁体   English

使 SAPUI5 应用程序在过时的 Fiori Launchpad 上运行

[英]Make SAPUI5 app work on outdated Fiori Launchpad

I have a SAPUI5 Chart Application that is deployed onto HCP and added to a FIORI Launchpad site.我有一个 SAPUI5 图表应用程序,它部署到 HCP 并添加到 FIORI Launchpad 站点。 The App uses certain components from a later version of SAPUI5 library ( 1.40.10 ) while the Fiori Launchpad is currently at 1.38.10 .该应用程序使用来自更高版本 SAPUI5 库 ( 1.40.10 ) 的某些组件,而 Fiori Launchpad 当前位于1.38.10 When I run the app standalone from HCP cockpit, all the components work fine but as soon as I run the app from inside the FIORI Launchpad, the components fail since they don't exist in version 1.38.10.当我从 HCP cockpit 独立运行应用程序时,所有组件都可以正常工作,但是一旦我从 FIORI Launchpad 内部运行应用程序,这些组件就会失败,因为它们在 1.38.10 版本中不存在。

What is the best way to make my app work in the FIORI launchpad without upgrading the SAPUI5 version.在不升级 SAPUI5 版本的情况下,让我的应用程序在 FIORI 启动板中工作的最佳方法是什么。

Can I give preference to the version that I have declared in my neoApp.json file as below:我可以优先考虑我在neoApp.json文件中声明的版本,如下所示:

 "routes": [{ "path": "/resources", "target": { "type": "service", "name": "sapui5", "version": "1.40.10", "entryPath": "/resources" }, "description": "SAPUI5 Resources" },

I found the below in the documentation.我在文档中找到了以下内容。 在此处输入图片说明

But I don't understand how to implement this in my neoApp.json.但我不明白如何在我的 neoApp.json 中实现这一点。 how to set the SAPUI5 version to 1.40.xx in neoApp.json.如何在neoApp.json 中将SAPUI5 版本设置为1.40.xx。

NOTE: I need to make the same application work in both SAP FIORI Launchpad and SAP Portal freeStyle Site (both of which are running SAPUI5 v1.38.10).注意:我需要在 SAP FIORI Launchpad 和 SAP Portal freeStyle Site(两者都运行 SAPUI5 v1.38.10)中使用相同的应用程序。 Since both these sites are created from HCP, portal service, if it works in one, it would inherently work on the other.由于这两个站点都是从 HCP、门户服务创建的,如果它在一个站点中工作,那么它本质上也可以在另一个站点上工作。 Please highlight in case any additional steps are required to run it on the portal.如果在门户上运行它需要任何其他步骤,请突出显示。

Please have a look at: Configuring Site Settings请查看: 配置站点设置

Here you can select a specific SAPUI5 version to use for the runtime.您可以在此处选择要用于运行时的特定 SAPUI5 版本。 The specified version will be used for all apps in this Launchpad site.指定版本将用于此 Launchpad 站点中的所有应用程序。 As long as no deprecated features are used, it should be ok with other (“older”) apps also.只要不使用不推荐使用的功能,其他(“旧”)应用程序也应该没问题。

If you can reach the internet you can try to load the correct version through the CDN from SAP Server by supplying its full path instead.如果您可以访问 Internet,则可以尝试通过提供其完整路径从 SAP 服务器通过 CDN 加载正确版本。 Maybe that works for your scenario也许这适用于您的场景

https://sapui5.hana.ondemand.com/1.60.13/#/topic/2d3eb2f322ea4a82983c1c62a33ec4ae https://sapui5.hana.ondemand.com/1.60.13/#/topic/2d3eb2f322ea4a82983c1c62a33ec4ae

<script id="sap-ui-bootstrap"
    type="text/javascript"
    src="**https://sapui5.hana.ondemand.com/1.42.6/resources/sap-ui-core.js**"
    data-sap-ui-theme="sap_belize"
    data-sap-ui-libs="sap.m"></script>

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

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