使用擴充套件技術將SAP Fiori應用隱藏動態建立的UI欄位
Requirement: hide the highlighted field in CRM Fiori Application “My Opportunity”, account block, as highlighted below:
The approach introduced in this document will not work, since the ui element to be hidden in this example is not statically defined in xml view, but dynamically created by JavaScript in controller code:
For the detail steps how we can figure this out, please refer to approach introduced in document How to find UI element binding path which is not statically defined in XML view.
Due to the fact of field dynamic creation, in the runtime, when the viewModification declaration in our extension component is executed, the controller of ui detail view is not instantiated yet, thus all the UI elements are not available at this time.
Instead, we have to find a proper position where the code extension is possible, and the instance of the UI element which we want to hide is available and accessible.
By going through all available extension hook in controller source code ( naming convention extHook… ), it is identified that the hook extHookGetDataForDetailScreen could be used. This hook will be called once the batch odata request to retrieve data for detail view display is returned from CRM backend.
The idea of hook implementation is get the to-be-hide UI element instance and call its method setVisible to hide it. This hook is done in your extension controller.
The whole source code of this extension project could be found in github: https:// github.com/i042416/test OpportunityExtension
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2718407/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP Fiori 應用 Adapt UI 動態顯示或者隱藏的技術設計細節解析APTUI
- 使用擴充套件方式隱藏SAP Fiori應用某個表格標籤頁的實際案例套件
- 使用 SAP CRM Application Enhancement Tool(AET) 建立擴充套件欄位APP套件
- 無法在SAP Fiori UI上新增擴充套件欄位?原因可能就在這裡UI套件
- 使用View modification擴充套件SAP Fiori應用的一個案例View套件
- SAP S/4HANA Material Fiori應用根據擴充套件欄位搜尋的實現原理套件
- 如何使用Key User Tool擴充套件SAP S/4HANA Fiori UI套件UI
- 不改表結構如何動態擴充套件欄位套件
- 一步步使用SAP CRM Application Enhancement Tool建立擴充套件欄位APP套件
- 使用擴充套件技術對SAP Fiori應用進行端到端的增強,一個實際案例介紹套件
- SAP S/4HANA擴充套件欄位建立過程的單步除錯套件除錯
- 一個真實的 SAP 標準 UI5 應用的擴充套件開發專案分享 - UI5 介面上新增訂單建立者欄位UI套件
- 如何在Marketing Cloud裡建立extension field擴充套件欄位Cloud套件
- 如何給 SAP Fiori Elements 應用的欄位新增 value help
- django 2.0 擴充套件使用者欄位 示例Django套件
- 在S/4HANA擴充套件欄位的Available Fields列表裡,看不到自己建立的擴充套件欄位該怎麼辦套件AI
- 使用Fiori Elements建立的SAP UI5應用,如何支援編輯功能UI
- SAP CRM和Cloud for Customer的擴充套件欄位後設資料Cloud套件
- SAP C4C 2102版本如何使用Key User Tool建立擴充套件欄位 - extension field套件
- 在 Laravel 中動態 隱藏 / 顯示 API 欄位LaravelAPI
- SAP CRM AET Application Reference型別擴充套件欄位的一個例子APP型別套件
- 【小知識】程式碼優化-動態新增大量擴充套件欄位優化套件
- SAP S/4HANA系統上所有可以用來建立擴充套件欄位的業務上下文套件
- [外掛擴充套件]多圖上傳欄位擴充套件MultiImages0.4套件
- 一鍵隱藏所有固定的瀏覽器擴充套件瀏覽器套件
- 如何定製化Fiori標準應用裡UI欄位的標籤UI
- go語言將表資料動態轉成切片(欄位任意擴充)Go
- VSCode擴充套件應用VSCode套件
- SAP CRM Fiori應用如何啟用Sales Office和Sales Group兩個欄位
- 如何查詢SAP Fiori UI上某個欄位對應的底層資料庫表UI資料庫
- SAP WebIDE裡UI5應用的隱藏檔案project.jsonWebIDEUIProjectJSON
- 如何在SAP Kyma的控制檯裡擴充套件新的UI套件UI
- 如何將本地 SAP UI5 應用配置到本地 Fiori Launchpad 中UI
- 如何手動下載並安裝 Visual Studio Code 的 SAP Fiori tools - Extension Pack 擴充套件套件
- 如何在呼叫Marketing Cloud contact建立API時增加對擴充套件欄位的支援CloudAPI套件
- Azure Load Balancer : 動態擴充套件套件
- Flutter 應用程式建立一個擴充套件皮膚列表Flutter套件
- SAP Fiori應用索引大全工具和 SAP Fiori Tools 的使用介紹索引