如何在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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 如何將SAP C4C TI頁面的值傳遞到Embedded Component裡去
- SAP CRM WebClient UI表格編輯模式的除錯明細WebclientUI模式除錯
- CRM和C4C product category hierarchy的可編輯性控制邏輯Go
- vi和vim的編輯模式模式
- Vim 編輯器的相容模式模式
- vim 列編輯模式模式
- 如何在SAP C4C AdvancedListPane上批量執行若干BO例項的action
- 如何在 Linux 中編輯字幕Linux
- 如何在模板中編輯修改文字
- 如何在 Ubuntu 中檢查你的 IP 地址Ubuntu
- SAP CRM WebClient UI Text 可編輯與否的控制邏輯WebclientUI
- 如何在CSDN部落格中編輯公式?公式
- 動態控制SAP CRM附件的可編輯性
- 如何在MonogoDB中檢視配置的引數值MonoGo
- 如何在SAP C4C裡使用ABSL消費第三方Restful APIRESTAPI
- 微信小程式圖文編輯元件開發(偽富文字編輯)微信小程式元件
- opencms 頁面編輯模式研究模式
- element封裝可編輯表格元件封裝元件
- 向量圖形編輯控制元件控制元件
- SAP C4C Opportunity和SAP ERP Sales流程的整合Unity
- SAP ERP classification和C4C的同步
- 如何在 Linux 中檢視可用的網路介面Linux
- Document flow API in SAP CRM and C4CAPI
- 封裝Vue Element的可編輯table表格元件封裝Vue元件
- 如何在vsCode中檢視git historyVSCodeGit
- 常用編輯器列模式快捷鍵模式
- jqGrid 編輯自定義控制元件控制元件
- Delphi元件與屬性編輯器 (轉)元件
- 如何在Linux中檢視所有正在執行的程式Linux
- iOS UITextField實時監測編輯的文字iOSUI
- 剛才把kindeditor線上編輯器做成視覺化UBB編輯模式了視覺化模式
- wordpress 設定編輯器預設模式模式
- 微信公眾號編輯模式應用模式
- Angular和SAP C4C的事件處理佇列Angular事件佇列
- 檢視SAP CRM和C4C的UI technical資訊UI
- 如何在 SAP Spartacus 中編寫 ASM-Compatible 的程式碼ASM
- 如何在Mac上查詢和編輯任何密碼?Mac密碼
- 在SAP C4C裡觸發SAP ERP的ATP check和Credit check