tomahawk wrote:
I am using Runtime lib 2.6.09.0116
I do not rely on the IsChanged flag in the method. I do compare DbValue and CurrentValue, and if not equal, log as a change. However, when AuditUpdateExistingEntity gets called, the UPDATE has already been issued (according to the debug output), and both DbValue and CurrentValue are equal to the updated value.
Will try again with newest libs.
The update statement indeed has already ran, as that's what the method is for: auditing a successful update. One can't audit that if the update wasn't performed yet.
The thing is though: selfservicing doesn't refetch data by itself during save, it does that when you touch a property again after a save. This means that the DbValue and CurrentValue are left untouched: the audit call should reveal different values for DbValue and CurrentValue.
As you simply do a '==' compare, it might be you get different results. The problem is that if you have a byte array value for example, and you change a byte inside that array, you won't see the change, but llblgen pro will, as it does value compares on byte array values.
So, indeed, how did you test this, and what were the results you got, vs. the results you would have expected? Because, the update statement has no influence on DbValue and CurrentValue.
ps: please, next time try the latest builds of the runtime first, and give the runtime lib build nr as well as what you're using: adapter or selfservicing. We can't see your code in front of us, and therefore it will only take longer for us to help you. Thanks.