如何在SAP UI5 / Fiori中创建shell插件应用程序?

问题描述 投票:1回答:2

我想创建一个shell插件应用程序,以便为我的启动板添加其他功能。我提到了以下sap文档https://help.sap.com/viewer/8422cb487c2146999a2a7dab9cc85cf7/Cloud/en-US/87764543e31247b5b471c06e3f6da6fc.html。我想知道究竟需要将哪些内容传递给url参数?如果有人可以提供shell插件的示例url,那就太好了。

setInterval(function () {
            jQuery.ajax({
                type: "HEAD",
                cache: false,
                url: "the URL to the Component.js of the plugin"
            }).done(
                function (result) {
                    jQuery.sap.log.debug("pingServer", "Successfully pinged the server to extend the session");
                }
            ).fail(
                function () {
                    jQuery.sap.log.error("pingServer", "failed to ping the server to extend the session");
                }
            );
        }, 900000); //15 minutes
sapui5 sap-fiori
2个回答
1
投票

您在上述链接中看到的是Component.js中的示例代码,用于每15分钟对服务器执行一次ping操作,以便用户的会话得到扩展(不会超时)。该URL可以是(网关)服务器上的任何工作(非缓存)链接。

根据您想要的附加功能,您将在Component.js中编写完全不同的代码。


1
投票

我想你想要创建一个Fiori Launchpad插件,以增强Fiori Launchpad(FLP)的功能。

这样的插件将在FLP Shell容器中呈现,这是表示FLP的DOM对象。由于无法确定何时呈现插件,因此您可以在插件代码中的component.js的init()函数中侦听approriate promise或事件async。

与UI5版本1.60一样,如果您可以访问此基于云的IDE,则可以从SAP WebIDE中的模板创建此类插件。如果是这样,请查看HELP / SAP.com以获取https://help.sap.com/viewer/fb7108e0166c43d3900e8a609e129005/Cloud/en-US/ee0e48567c034991ac079eb93348d3b2.html的逐步说明

© www.soinside.com 2019 - 2024. All rights reserved.