2016-10-18 5 views
0

우리는 Fiori 런치 패드의 사용자에게 메시지/알림을받는 방법을 찾고 있습니다 (필요한 경우 즉, X 일에 유지 관리를 위해 시스템이 다운 될 것이라는 사전 경고 메시지)SAP Fiori Launchpad - Dialog

우리는 SAP ONE 지원 런치 패드에서 볼 수있다

옵션은 다음과 같습니다 - 로그인에 대한 메시지 대화 상자 팝업 (예 뭐죠 새.) - 메시지가

대화에 링크와 함께 바닥 글에 버튼 - 메시지에 링크 쉘 줄에 버튼 대화

문제는 검색 및 검색 후 구현 방법에 대한 구현/문서화가 가능한지 여부를 확인할 수 없습니다.

누구든지 이에 대한 지식이 있거나 올바른 방향으로 나를 가리킬 수 있습니까?

옵션으로 RSS 피드를 가져올 수 있지만 이상적인 대안 솔루션을 원할만한 뉴스 앱이 있습니다.

Message dialog

Shell bar drop down button

답변

0

런치는 플러그인을 사용하여 확장 개념이있다. 여기서 UI의 동작 메뉴, 머리글, 바닥 글 및 다른 일부 선택된 위치에 단추를 추가 할 수 있습니다. 그러나 런치 패드 내용을 변경해야 할 필요가 있으므로 SAP ONE 지원 런치 패드 (실제로는 셸에 기반 함)를 확장 할 수 있는지 확신 할 수 없습니다.

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

을 희망이 도움이!