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
You can do this in two ways, based on your business case:
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
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
I suggest to follow the rapid developer learning path, which will answer this an many other questions for you.