简体   繁体   English

SAP Fiori Launchpad - 对话框

[英]SAP Fiori Launchpad - Dialog

Our business is looking for a method of getting messages / notifications across to users in the Fiori launchpad (when needed, ie, pre-warning message that system will be down for maintenance on X day)我们的业务正在寻找一种在 Fiori 启动板中向用户发送消息/通知的方法(在需要时,即系统将在 X 天停机维护的预警消息)

Options we have seen on the SAP ONE Support Launchpad are: - Message Dialog popup on log in (eg. whats new) - Button in shell bar with link to message dialog - Button in footer with link to message dialog我们在 SAP ONE Support Launchpad 上看到的选项有: - 登录时弹出的消息对话框(例如,最新消息) - 带有消息对话框链接的 shell 栏中的按钮 - 带有消息对话框链接的页脚按钮

The problem is after searching and searching we can't find out if these are even possible to implement / documentation on how to implement.问题是在搜索和搜索之后,我们无法确定这些是否可以实现/关于如何实现的文档。

Does anyone have any knowledge of this or could point me in the right direction?有没有人对此有任何了解或可以指出我正确的方向?

There is the news app that could pull in an RSS feed as an option but ideally would like an alternative solution.有一个新闻应用程序可以将 RSS 提要作为一个选项,但理想情况下想要一个替代解决方案。

Message dialog消息对话框

Shell bar drop down button外壳栏下拉按钮

The launchpad has an extension concept using plugins.启动板有一个使用插件的扩展概念。 Here you can add buttons to the action menu, the header, the footer and some other selected places in the UI.您可以在此处向操作菜单、页眉、页脚和 UI 中的其他一些选定位置添加按钮。 But I am not sure to what extend a SAP ONE Support Launchpad (that is actually based on the ushell) can be extended as one would need to make changes to the launchpad content.但我不确定 SAP ONE Support Launchpad(实际上基于 ushell)可以扩展什么扩展,因为需要对启动板内容进行更改。

The documentation about the API can be found here .可以在此处找到有关 API 的文档。

And the detailed API doc here .以及详细的 API 文档here

A sample coding as plugin could look like this:作为插件的示例编码可能如下所示:

sap.ui.define([
"sap/ui/core/Component",
"sap/m/MessageBox"], function(Component, MessageBox) {

return Component.extend("my.FLP.plugin.Component", {

    init: function() {

        // 1. fiori renderer for reuse
        var renderer = sap.ushell.Container.getRenderer("fiori2");
        
        /**
         * 2.
         * Add Item to the Action Menu
         */

        renderer.addActionButton("sap.m.Button", {
            id: "testHomeButton",
            icon: "sap-icon://family-care",
            text: "Help for FLP page",
            press: function() {
                window.open("http://www.sap.com", "_blank");
            }
        }, true, false, [sap.ushell.renderers.fiori2.RendererExtensions.LaunchpadState.Home]);

        renderer.addActionButton("sap.m.Button", {
            id: "testAppButton",
            icon: "sap-icon://family-care",
            text: "Help for App page",
            press: function() {
                window.open("http://www.sap.com", "_blank");
            }
        }, true, false, [sap.ushell.renderers.fiori2.RendererExtensions.LaunchpadState.App]);

        /**
         * 3.
         * Add Item to the Footer
         */

        
        renderer.setFooter(new sap.m.Bar({
            design: sap.m.BarDesign.Footer,
            contentLeft: [new sap.m.Button({
                text: "Important Information",
                press: function() {
                    MessageBox.information("This Fiori Launchpad has been extended to improve your experience");
                }
            })]
        }));

Hope this help!希望这有帮助!

Notifications are not possible with Fiori Launchpad. Fiori Launchpad 无法发送通知。 It's has been introduced in Fiori 2.0.它已在 Fiori 2.0 中引入。 See this link https://experience.sap.com/skillup/sap-fiori-2-0-the-launchpad-part-2/ .请参阅此链接https://experience.sap.com/skillup/sap-fiori-2-0-the-launchpad-part-2/ Move to Fiori 2.0 if it's feasible for you.如果可行,请移至 Fiori 2.0。

Regards, Amit问候, 阿米特

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

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