Dirty context in the UI
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!