Subscribe via RSS
How can I get User data before update, I want to compare data in business logic
I call methods beforeUpdate and afterUpdate, both return new value
I'm not sure that I understood you correctly. Could you please provide some additional info:
1. What is the final goal? You are updating property A in the Users table, and you want to get the old value of A property (before it was updated) and then to get the updated value of the same property?
2. How do you call beforeUpdate and afterUpdate methods?
I want to get value before it was updated and after it was update and compare them.
I don't call this methods, they call automatically, this is server side logic
Are you using backendless 3 or 4?
I am using backendless 3
Got it. I'll try to reproduce the behavior you've described and respond back ASAP
Ok, thanks, i'm waiting for response, because it is very important for me
Ok, I figured out how to implement what you need. If you will try to extract the old value from userValues in beforeUpdate you will be receiving the updated value.
If you need to get the old value - call
or extract the value of required property from current user if it's logged in.
No changes required in afterUpdate code.
Comments have been locked on this page!
2591 Dallas Parkway, Ste 300Frisco, TX 75034
© Copyright 2013 Backendless Corp.