Data view Representation?

0
How to view old data and update data of an attribute at a time? Ex :If an attribute like order number is value 5 and then you update it as value 7 Then ,i have to view attribute data in the below manner old order number 5 New order number 7    
asked
2 answers
0

You can do this in two ways, based on your business case:

  1. Add a new “Calculated” attribute OldOrderNumber and display it (not editable). Copy the value of OrderNumber in the PreCommit event handler to the attribute OldOrderNumber. That way, till the time user commits, the user will see old value and new values. After commit both the values will be same
  2. Add a new “Stored” attribute OldOrderNumber and display it (not editable). Retrieve from the database, the old value of OrderNumber in the PreCommit event handler and assign it to OldOrderNumber. Now users can always see the current value and the oldvalue
answered
0

I suggest to follow the rapid developer learning path, which will answer this an many other questions for you.

https://academy.mendix.com/link/path/31/Become-a-Rapid-Developer 

answered