Detect change using Data Containers Cuba 7

Hello,
I would like use ItemPropertyChangeEvent. In Cuba 6, I used datasource.addItemPropertyChangeListener (event -> ...) to detect a change.

Today, I use Cuba 7.2 and I am lost with the “DataContainer”.

Could you give me a code sample to inspire me?
thank you in advance
Stephen

Hi Stephen,

Please see InstanceContainer events and CollectionContainer events. Also, the Event handling section of the Studio User Guide shows how to quickly create event handlers in UI code.

Thank you for this return.
Effectively, I ended up understanding how to implement the “Instance container” and it works.
Thanks again.
Stephen