You need to sign in to do that
Don't have an account?

How to get old status in Task (Get old status and compare with latest value)
Hi i need to compare new status and previous status in Task. I've a VF page and its controller.
How can i compare new(after user changed) and old staus(before user change) in apex controller class. Its pretty easy in Triggers, but when it comes to the controller class?
Thanks all my friends..
How can i compare new(after user changed) and old staus(before user change) in apex controller class. Its pretty easy in Triggers, but when it comes to the controller class?
Thanks all my friends..
Take a look similar question here Apex Class - Compare Old vs. New Values (https://developer.salesforce.com/forums/?id=906F000000092PxIAI)
Thanks,
Pritam Shekhawat
Any clues?/
Thank a lot
Task beforeUpdate=[Select status from Task where id=:TaskO.id];
if(beforeUpdate.status == TaskO.status)
Thanks a lot for everyone