2016-10-18 46 views
0

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

我們已經看到在SAP ONE支持快速啓動選項有: - 在日誌消息對話框彈出(如什麼新鮮事。) - 巴頓與鏈接消息殼巴對話框 - 巴頓在頁腳鏈接消息對話框

問題是搜索和搜索後,我們無法找出這些甚至可能實現/如何實現文檔。

有沒有人有這方面的知識或可以指出我在正確的方向嗎?

有一種新聞應用程序可以將RSS提要作爲選項提供,但理想情況下需要其他解決方案。

Message dialog

Shell bar drop down button

回答

0

啓動板具有使用插件的擴展概念。在這裏,您可以將按鈕添加到操作菜單,頁眉,頁腳和用戶界面中的其他選定位置。 但我不確定擴展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"); 
       } 
      })] 
     })); 

希望這個幫助!