Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sapui5 如何在SAP UI5/Fiori中创建shell插件应用程序?_Sapui5_Sap Fiori - Fatal编程技术网

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

Sapui5 如何在SAP UI5/Fiori中创建shell插件应用程序?,sapui5,sap-fiori,Sapui5,Sap Fiori,我想创建一个shell插件应用程序,为我的启动板添加额外的功能。 我参考了以下sap文档。 我想知道到底需要传递给url参数的是什么? 如果有人能给出一个shell插件的url示例,那就太好了 setInterval(function () { jQuery.ajax({ type: "HEAD", cache: false, url: "the URL to the Comp

我想创建一个shell插件应用程序,为我的启动板添加额外的功能。 我参考了以下sap文档。 我想知道到底需要传递给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

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


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

我认为您需要创建一个Fiori Launchpad插件,以增强Fiori Launchpad(FLP)的功能

这样的插件将在FLP外壳容器(表示FLP的DOM对象)中呈现。由于无法确定何时呈现插件,因此可以在插件代码中的component.js的init()函数中异步侦听适当的承诺或事件

与UI5版本1.60一样,如果您可以访问此基于云的IDE,则可以从SAP WebIDE中的模板创建这样的插件。 如果是这样,请查看HELP/SAP.com以获取详细说明,网址为

可能重复的