Get Action time stamp in calculated value?
One answer
Cesar,
dealing with state changes in JavaScript is problematic.
It would be interesting what do you want to achieve here. Which version of RTC do you use?
There are numerous issues here. https://jazz.net/wiki/bin/view/Main/AttributeCustomization shows that you can only detect the state you are in. The action is only available in conditions and, since it has not happened yet, not very useful either.
You can not detect a state change is about to happen, or has happened.
The only way I think you could try to do what you want is to store the current state in a hidden attribute. You can not act on the save. You would have to detect that a state change has happened and then copy the modification date into the attribute.
Dependent on what you want to achieve, you might be better off, using a server follow up action extension.
dealing with state changes in JavaScript is problematic.
It would be interesting what do you want to achieve here. Which version of RTC do you use?
There are numerous issues here. https://jazz.net/wiki/bin/view/Main/AttributeCustomization shows that you can only detect the state you are in. The action is only available in conditions and, since it has not happened yet, not very useful either.
You can not detect a state change is about to happen, or has happened.
The only way I think you could try to do what you want is to store the current state in a hidden attribute. You can not act on the save. You would have to detect that a state change has happened and then copy the modification date into the attribute.
Dependent on what you want to achieve, you might be better off, using a server follow up action extension.