Replies: 7 comments 6 replies
-
Hi. Currently not as far as I know. |
Beta Was this translation helpful? Give feedback.
-
I am not sure if @JasonBock website is still live but he had written about comparing a Property's current value with the previous. |
Beta Was this translation helpful? Give feedback.
-
My site is back up, but all the old articles are not there (and I don't know if I'll ever get around to doing that). Maybe it's in archive.is somewhere.... |
Beta Was this translation helpful? Give feedback.
-
It sounds like I need to store the old value and pass it in to the rule. Can I pass public variables to a business rule or only properties? |
Beta Was this translation helpful? Give feedback.
-
The "cheap" and easy way is to just create a business rule that whenever a property is set it stores the new value into a private property info for the last value. Then you can create a rule to compare the two property infos with the new value and the last value. You will have to ensure those happen in the correct order so the rule to do the compare logic is called before the rule to set the last value property info with the new value. |
Beta Was this translation helpful? Give feedback.
-
Sounds like my best bet is to store value in an OldValue Property. Is it possible to have OldValue not trip the dirty flag? |
Beta Was this translation helpful? Give feedback.
-
Do you think this will do the trick to store old property not fire validation and not trip dirty flag public long OldControlNumber
} |
Beta Was this translation helpful? Give feedback.
-
I have a rule that needs to know the previous value of the property it's validating. Is there a way to know the previous value within a business rule?
Thanks,
Mike
Beta Was this translation helpful? Give feedback.
All reactions