SAP Fiori裡Contact Support的按鈕渲染邏輯
I was once confused about why I could see “Contact Support” button in error popup window in some system but in some other system it is gone. See the following two groups of screenshot for example:
Group one: no “Contact Support” button
Group two: “Contact Support” button available
This blogs contains my debugging detail to figure out what controls the availability of this button.
When Fiori launchpad is opened there is one http request below which asks for a series of configuration information from backend. Among them there is Contact Support enablement setting.
https://:/sap/bc/ui2/start_up?sap-language=EN&sap-client=001&shellType=FLP&depth=0 The visibility of this button is controlled in the backend. You can create your own BAdI implementation on enhancement spot /UI2/BADI_EMB_SUPP to use your own logic to determine the button display. More detail about this enhancement spot could be found in note 2111116 – Enable own support-message-system for Fiori Embedded Support. You can refer to below screenshot about how the BAdI implementation is called in the runtime.
Then you could observe the response in Chrome. The corresponding field is “isEmbReportingActive“.
Search the source code by specifying it as keyword, then I find the place of code where this flag is evaluated:
In line 2801, the json response is parsed by framework:
Here I find what I am looking for. The “Contact Support” button is enabled only both of the two prerequisites are fulfilled:
(1) the enabled field of sap-ushell-config.services.SupportTicket.config should NOT be false. It is ok to have it as undefined, as example below.
(2) The value of isEmbReportingActive returned by mentioned BAdI implementation must be true.
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2719606/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Fiori Elements List Report table 裡的普通按鈕,Global 按鈕 和 Determining 按鈕
- SAP S/4HANA系統Fiori UI上Adapt UI按鈕顯示與否的控制邏輯UIAPT
- 如何在 SAP Fiori Elements List Report 表格工具欄裡增添新的自定義按鈕
- 如何給 SAP Fiori Elements 應用新增自定義按鈕
- SAP Fiori 應用裡圖示(Icon)的渲染原理和使用技巧
- 如何分辨 SAP Fiori Launchpad 裡的真假 Fiori 應用
- SAP Fiori Elements List Report 列表寬度決定邏輯的單步除錯除錯
- SAP CRM 裡 Attachment 搜尋的實現邏輯介紹
- SAP Fiori裡的兩種鎖機制
- SAP MM 定義物料型別的屬性配置裡的New entries按鈕型別
- SAP CRM One order裡user status和system status的mapping邏輯APP
- SAP BSP和JSP頁面裡UI元素的ID生成邏輯JSUI
- 關於 SAP Spartacus scss 處理邏輯裡的變數 $useLatestStylesCSS變數
- SAP Marketing Cloud裡的contact main facet是什麼意思CloudAI
- SAP:SALV重新整理按鈕事件事件
- SAP Spartacus HTTP Interceptor 的 provisioning 邏輯HTTP
- iview Table元件渲染操作按鈕, render 渲染icon圖示更改方法View元件
- 關於 SAP Fiori Elements 應用標題屬性(title) 的複製邏輯單步除錯除錯
- SAP CRM note建立按鈕被禁用的原因分析
- Flutter 的渲染邏輯及和 Native 通訊Flutter
- SAP Fiori Elements 應用裡和 Fiori 3 相關的外觀設定
- SAP Cloud for Customer和SAP Fiori系統裡的OData測試工具Cloud
- SAP Fiori Elements裡Drop down list的實現原理
- SAP CRM 產品主資料搜尋alternative ID type下拉選單的渲染邏輯
- SAP gateway處理multiple key的邏輯Gateway
- SAP CRM Product category的決定邏輯Go
- SAP Spartacus BrowserPlatformLocation的初始化邏輯Platform
- SAP Commerce Cloud Product Review 的新增邏輯CloudView
- 如何啟用SAP CRM附件UI上的advanced按鈕UI
- 如何讓SAP S/4HANA的Material Fiori應用配置到Fiori Launchpad裡
- SAP: ALV GRID 控制之 單元格按鈕
- SAP ABAP, Fiori, Android和Hybris裡的非同步操作Android非同步
- SAP Fiori應用裡日期格式的顯示奧祕
- SAP Fiori Elements 裡 Smart Table column 的寬度問題
- 如何在SAP Fiori應用裡使用React componentReact
- SAP UI5 BarcodeScannerButton 的初始化邏輯 - Cordova API 檢測等邏輯UIAPI
- SAP Fiori + Vue = ?Vue
- SAPCRMOneorder裡userstatus和systemstatus的mapping邏輯APP