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?



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

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