首页 > 应用开发 > IT综合 > 如何在SAP C4C的Embedded组件中检测编辑模式(EditMode)

如何在SAP C4C的Embedded组件中检测编辑模式(EditMode)

原创 IT综合 作者:i042416 时间:2020-08-30 17:30:23 0 删除 编辑

My series of Cloud Application Studio Blogs

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博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录


  • 博文量
  • 访问量