Skip to Content
Author's profile photo Alessandro Iannacci

Dirty context in the UI

Hello experts!

During this probe project I noticed that if you use an embedded component and link it to a standard screen, for example a Thing Inspector, and if you in the EC initialization made something in an automatic manner like UI model field calculation and so on, then you can see in the original Thing Inspector the SAVE button appearing when you open the object without doing any manual modification.

To avoid this behaviour, for each embedded component, at the end of any automatic operation starting when the EC starts, I added the following operations:


The first one should synchronize the BO with the UI. The second one sould save. The third one should re-sync to delete the message “Data Saved”.

This is a workaround and it is not so beautiful, but for now it is the only way that I found.

If somebody else have a good idea please comment!

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Jens Limbach
      Jens Limbach

      Hey Allessandro,

      please try the following:

      When we create an embedded component, it usually sets the host BO dirty, which results
      in the upcoming SAVE/CANCEL buttons. Avoiding this is simple. All you need is to set the Work-Protect Attribute of the EC itself to false.

      The attribute is per default empty. You have to define a a fallback value of
      type boolean and set it to false.


      The only thing that I realised was that i.e. in case you have an Advanced List Pane and a "delete icon" in one of the rows, the delete did not make the "Save" appear, which leads to that you cannot save the deletion of the row... (there are also workarounds for that but it is to be considered).



      Author's profile photo Alessandro Iannacci
      Alessandro Iannacci
      Blog Post Author

      Hi Jens,

      your solution is working perfectly!

      Thanks a lot, now the loading process it is also faster!