How to get old values of an attribute

0
Hi Team, I have a requirement where I need to check the previous values of the same attribute. There are already some records created in that table (in Prod) and I want to have how that attribute is changed from one value to another value.   Currently we have enabled AAT for that module and we could see all the history of that attribute in AAT. But I want the same data to set another attribute and need help to work on the same.   Regards, Ajay
asked
3 answers
0

Hey ;) 

 

You may try to use the Audit Trail module which creates a log history for the changes made to objects in your Mendix application.

answered
0

Depends indeed via audit trail or if you only want to monitor 1 table, you could create a assocition to itself and each time a user does a edit of the object you copy that object, so you always so all records which have changed

answered
0

Hey Ajay,

If you don't want to use the Audit Trail module, you can create more or less the same logic yourself.

You can create a separate entity that contains different versions of the same object. In this case, you might, for example, have the attributes "oldvalue", "newvalue" and "version".

This allows you to retrieve the desired object based on the object's version.

 

if this answer helped, mark as accepted.

 

Best Regards,

Ricardo Pereira 

answered