Comparing screen fields content vs database columns content

Before saving a record to the database, I need to find out which fields have changed in the screen, comparing all of them with the previous query (from "Preparation" ).
How can I go iteratively through the table on the screen and discover which fields have changed? Without writing an IF() explicitly for each field.


Old but good.. ;)

Maybe this component might help on this...