How to identify that some attributes have changed

In some of edit screens, I have to calculate some results based on data input and save them. I have provided one button for calculation and saving them.

However the results are invalid if user change data and just save it without calculating the results and in such case i want to mark the result dirty.

How can i do this?

regards

Umesh

Hi,
You can subscribe to events of data container that holds edited entity:

https://doc.cuba-platform.com/manual-7.2/gui_instance_container.html#gui_instance_container_events

Especially ItemPropertyChangeEvent - it informs you about name of each changed attriibute so you can filter out uninteresting attributes.