Compare old to new value at validation in LightSwitch
-
26-09-2019 - |
Question
Is there a possibility to compare the old value to the new one during validation.
Say you have a State on some object that is set to A and changed to B. This should only be allowed if the entity fulfills certain circumstances.
Solution
Yes, you can access the original values by drilling into the entity.Details.Properties.[propname].OriginalValue
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow