Posted: 6 Jun 2017 14:44 EDT Last activity: 7 Jun 2017 2:10 EDT
How to read a property value without firing its declare expression with change tracking as "whenever used"
I have property "X" which has declare expression set on it with change tracking as "Whenever used". Now i want to read that property without firing the underlying declare expression rule(since i need capture the old value). I can see that assign this property to a temp property and use that value.
If whenever used is there, then no way you may skip calculating it. Whenever it will be used, the value will be recalculated. But from the requirement you mentioned, what I understood is, you have to keep the old value in a separate property and change the value of this property. Only Declare Trigger has that kind of an option. I have shown the exact field which does that in the highlighted area of the screen shot though I don't know I declare trigger will fit into your use case or not.