如何在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:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关文章
- SAP UI5 sap.ui.layout.Grid 控件宽度百分比的设置原理
- SAP UI5 sap.ui.export.Spreadsheet API 介绍
- 关于 SAP UI5 Device API 的使用介绍
- SAP UI5 sap.ui.Device.media.RANGESETS.SAP_STANDARD_EXTENDED 介绍
- SAP UI5 sap.ui.Device.media 公有方法介绍
- SAP UI5 sap.ui.Device.media.initRangeSet 方法的单步调试
- 通过一个实际例子,理解 SAP UI5 sap.ui.model.odata.v2.ODataModel API 中 BindingContext 绑定上下文的概念和用法试读版
- 使用 Excel cdata addin 连接 SAP ABAP 系统时遇到错误消息 Unable to connect to SAP system
- SAP QM 不常用事务代码QVM3 - Inspection Lots Without Usage Decision
- SAP UI5 sap.m.Table Manual Pop-In Mode 概述
- SAP UI5 sap.m.Table 实现响应式布局的两种配置模式
- 34. 如何使用 Postman 发送 SAP OData Batch 请求到 ABAP 后台服务器
- SAP Move to Rise是什么意思? SAP Move的五条路径是什么?
- Oracle购买SAP: 开启新数据时代(oracle收购sap)
- SAP 金额在表中的存储及货币转换因子详解编程语言
- Sap SE16n 修改表数据详解编程语言
- SAP学习日志–RFC REMOTE FUNCTION CALL详解编程语言
- sap unix timestamp转换详解编程语言
- SAP MD04相关报表开发详解编程语言
- SAP中使用FTP服务详解编程语言
- SAP可以创建预留的移动类型详解编程语言
- SAP 库存相关表格详解编程语言
- SAP系统权限管理及参数设置详解编程语言
- SAP MM批次管理(4)批次分类–大海详解编程语言
- SAP 发送邮件例子(内部)详解编程语言
- 对比:Oracle 与 SAP的优势(oracle 与 sap)
- Oracle与SAP权衡利弊比较之路(oracle与sap比较)
- 跨界合作新模式 Oracle与SAP实现合并(oracle与sap合并)
- 比拼Oracle与SAP的优劣对比(oracle与sap优劣)
- Oracle SAP系统深入探索管理系统之魅力(oracle sap系统)
- 探索 Oracle 与 SAP 技术的开发可能性(oracle sap开发)
- Oracle 与 SAP深度对比分析(oracle sap对比)