SAP Knowledge Base Article - Public

2713954 - Custom Embedded Component Opening in Edit Mode

Symptom

You have added a custom EC to a screen. When you navigate to this facet, the screen opens in edit mode.

Environment

  • SAP Cloud for Customer
  • SAP Cloud Application Studio

Reproducing the Issue

  1. Log into effected tenant.
  2. Open the screen experiencing the issue, for example, Account TI.
  3. Navigate to the custom facet.
  4. Observe the screen behavior. 

The TI now is showing in edit mode.

Cause

The cause of this behavior is that you have the property "Relevant for Work Protect" checked on events in the Custom EC, or the event is making changes to a bound DataField which has the property "Work Protect Relevant" set to True.

This property means that on call of the event or change of the field, the system will need to check if you want to Save to confirm changes made. The EC becomes "dirty" which means the UI shows in edit mode to anticipate the Save.

Resolution

Please open this embedded component in the UI Designer. Click the Display/Edit mode and uncheck the property on the events in the Controller tab and/or, in the DataModel tab, set the property of the DataFields to False.

Save and Activate the EC and then return to the UI. You will need to re-log into the system.

Keywords

Edit mode, Display mode, Custom EC, BO, Error, dirty, ui, data field, Controller, DataModel, Relevant, for Work Protect, Work Protect, tab, behaviour, PDI, SDK , KBA , custom ec , embedded , component , edit mode , display mode , AP-RC-BDS-UI , ByDesign Studio UI Generation , AP-RC-UIF-RT , UI Framework Runtime , How To

Product

SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions