Calculated Value that also allows for manual setting of field?
![]()
I have a Calculated Value script working when Status (state) changes to set a custom date field (Verified Date). We also want to be able to manually set this value to correctly set dates before this script existed. When I save the manually selected date in eclipse, the date returns to blank. I saw a comment in the wiki about making Calculated Values read only in the presentation, but are you actually prevented from making manual updates to fields with a script associated with them?
|
Accepted answer
![]()
Ralph Schoon (61.8k●3●36●43)
| answered May 08 '14, 5:03 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Vince,
as far as I can tell, you are not required to make the attribute read only. However, every time the calculation script affecting this attribute you have to decide if you want to overwrite it. This is often not easy to do. As described in https://jazz.net/wiki/bin/view/Main/AttributeCustomization you can return the current value or a calculated value. You would have to make a decision somehow. Please let us know if it works for you. Vince Thyng selected this answer as the correct answer
Comments Thanks Ralph. I have my Calculated value setup to only run when there is a Staus (state) change, so I was surprised to see my manual change of the my custom date get reset immediately to blank when I saved. I am not expecting my script to be running at that point.
|
Comments
<removed comment, it was unrelated>