如何在SAP C4C的Embedded元件中檢測編輯模式(EditMode)
My series of Cloud Application Studio Blogs
- How to detect EditMode in an Embedded Component
- Step by step to enable your custom BO with attachment upload functionality
- Step by step to create an Adobe Print form in Cloud application Studio
I am working together with a partner and they would like to implement a requirement in their embedded component.
(1) The embedded component is injected to a tab in a standard Thing inspector. (2) Inside the EC there is a button. It is required that the button is only visible when Edit button in TI is clicked.
It means there must be an approach for EC which allows it to know currently it is in edit mode or not.
I find a solution for this requirement, however in my solution I use a standard field which is NOT exposed to Partner development. Since I am not responsible for the development of Cloud Studio in SAP I CANNOT guarantee this solution can still work in the future release. USE THIS SOLUTION AT YOUR OWN RISK!
(1) Add the parameter debugMode=true in UI url,
And then ctrl+click on your C4C UI, then you are allowed to review some system field in tab “DataModel”. There is a field /Root/$System/EditMode which represents current Edit mode. When TI is in edit mode, it is equal to X:
“” for display mode.
(2) Open your UI and manually create a field “EditMode” under $System node:
And bind the visibility attribute to this model field.
Test result in the runtime:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2715817/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Shift+Click,編輯[...],如編輯圖片
- 如何在 Linux 中編輯字幕Linux
- 如何將SAP C4C TI頁面的值傳遞到Embedded Component裡去
- 如何在模板中編輯修改文字
- SAP UI5 BarcodeScannerButton 的初始化邏輯 - feature 檢測,Cordova API 檢測等邏輯UIAPI
- SAP CRM WebClient UI表格編輯模式的除錯明細WebclientUI模式除錯
- 如何在 SAP Spartacus 中編寫 ASM-Compatible 的程式碼ASM
- 檢視SAP CRM和C4C的UI technical資訊UI
- CRM和C4C product category hierarchy的可編輯性控制邏輯Go
- SAP UI5 BarcodeScannerButton 的初始化邏輯 - Cordova API 檢測等邏輯UIAPI
- PowerPoint 教程「17」,如何在 PowerPoint 中編輯圖片?
- vi和vim的編輯模式模式
- vim 列編輯模式模式
- 將SAP C4C Custom BO使用ABSL編寫的邏輯通過OData服務暴露出去
- 如何在SAP C4C AdvancedListPane上批量執行若干BO例項的action
- Unity如何在兩個編輯器中轉移資源Unity
- SAP CRM WebClient UI Text 可編輯與否的控制邏輯WebclientUI
- 如何在 Acrobat Pro DC 中編輯和註釋 PDF 檔案?BAT
- 網站如何在編輯器中插入音訊(MP3)?網站音訊
- SAP中匯率取值選擇邏輯分析測試
- SAP C4C Opportunity和SAP ERP Sales流程的整合Unity
- 動態控制SAP CRM附件的可編輯性
- 【轉載】SAP ABAP ALV報表控制編輯行,編輯單元格
- opencms 頁面編輯模式研究模式
- element封裝可編輯表格元件封裝元件
- 如何在macOS Big Sur中編輯、複製或刪除Memoji表情Mac
- SAP ERP classification和C4C的同步
- Linux-vim文字編輯器-三種模式-vim裡的替換-vim檢視模式-對比檔案Linux模式
- 臨時編輯測試
- 微信小程式圖文編輯元件開發(偽富文字編輯)微信小程式元件
- 封裝Vue Element的可編輯table表格元件封裝Vue元件
- 如何在SAP C4C裡使用ABSL消費第三方Restful APIRESTAPI
- SAP UI5 檢視裡的 OverflowToolbar 控制元件UI控制元件
- 如何在 Java 中實現無向環和有向環的檢測Java
- 如何在Chrome development tool裡檢視C4C前臺傳送的請求細節Chromedev
- SAP UI5 barcode 控制元件的 feature 檢查探測機制單步除錯 - checkCordovaInIframeUI控制元件除錯AI
- zGallery for Mac圖片檢視編輯工具Mac
- 工作記錄--WPF自定義控制元件,實現一個可設定編輯模式的TextBox控制元件模式