簡體   English   中英

SAP Fiori Launchpad - 對話框

[英]SAP Fiori Launchpad - Dialog

我們的業務正在尋找一種在 Fiori 啟動板中向用戶發送消息/通知的方法(在需要時,即系統將在 X 天停機維護的預警消息)

我們在 SAP ONE Support Launchpad 上看到的選項有: - 登錄時彈出的消息對話框(例如,最新消息) - 帶有消息對話框鏈接的 shell 欄中的按鈕 - 帶有消息對話框鏈接的頁腳按鈕

問題是在搜索和搜索之后,我們無法確定這些是否可以實現/關於如何實現的文檔。

有沒有人對此有任何了解或可以指出我正確的方向?

有一個新聞應用程序可以將 RSS 提要作為一個選項,但理想情況下想要一個替代解決方案。

消息對話框

外殼欄下拉按鈕

啟動板有一個使用插件的擴展概念。 您可以在此處向操作菜單、頁眉、頁腳和 UI 中的其他一些選定位置添加按鈕。 但我不確定 SAP ONE Support Launchpad(實際上基於 ushell)可以擴展什么擴展,因為需要對啟動板內容進行更改。

可以在此處找到有關 API 的文檔。

以及詳細的 API 文檔here

作為插件的示例編碼可能如下所示:

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

希望這有幫助!

Fiori Launchpad 無法發送通知。 它已在 Fiori 2.0 中引入。 請參閱此鏈接https://experience.sap.com/skillup/sap-fiori-2-0-the-launchpad-part-2/ 如果可行,請移至 Fiori 2.0。

問候, 阿米特

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM