How to calculate a value on state change?
Hi all,
I would like to change some specific attributes based on a state change.
My problem is that while I can change attributes based on the change of other attributes through calculated values and cannot figure out how to make it dependent on the state change. If I write a script and link it the attribute to be changed and set status attribute as dependencies it doesn't work. Obviously as long as I haven't saved the item, the state hasn't changed.
Anyone with hints how I can achieve what I am looking for?
Thanks - franca
One answer
This has been asked and answered multiple times over the years.
You can not really detect the state change in attribute customization, except you can detect the selected action in conditions.
I know that users have tried to store the state in hidden attributes and used that to detect state changes. I consider that not a great solution. An advisor or follow up action (Java Extension) might be needed here.