SAP Fiori Launchpad - 对话

时间:2016-10-18 10:57:46

标签: sapui5 sap-fiori

我们的业务正在寻找一种在Fiori启动板中向用户发送消息/通知的方法(如果需要,即系统将在X天停机维护的预警信息)

我们在SAP ONE Support Launchpad上看到的选项包括: - 登录时弹出消息对话框(例如,新增内容) - shell栏中的按钮,带有消息对话框的链接 - 页脚按钮,带有消息对话框链接

问题是在搜索和搜索之后我们无法确定这些是否可能实现/如何实施文档。

有没有人对此有任何了解或能指出我正确的方向?

有一个新闻应用程序可以提供RSS提要作为一个选项,但理想情况下想要一个替代解决方案。

Message dialog

Shell bar drop down button

2 个答案:

答案 0 :(得分:0)

启动板具有使用插件的扩展概念。在这里,您可以在操作菜单,页眉,页脚和UI中的其他一些选定位置添加按钮。 但我不确定SAP ONE Support Launchpad(实际上是基于ushell)的扩展可以扩展,因为需要对启动板内容进行更改。

有关API的文档可在此处找到: http://help.sap.com/saphelp_nw75/helpdata/en/56/e9328978954c77946b75c0976f221c/content.htm?frameset=/en/d5/8602924af34fc3816d44ddb6a9e911/frameset.htm&current_toc=/en/bd/e12a271f0647e799b338574cda0808/plain.htm&node_id=130&show_children=false

详细的API文档在这里: https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.ushell.renderers.fiori2.Renderer.html

作为插件编码的示例可能如下所示:

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");
                }
            })]
        }));

希望这有帮助!

答案 1 :(得分:0)

Fiori Launchpad无法通知。 它已在Fiori 2.0中引入。请参阅此链接https://experience.sap.com/skillup/sap-fiori-2-0-the-launchpad-part-2/。 如果可行,请转到Fiori 2.0。

此致 阿米特