Setting value to a readonly attribute using :Calculated Values" not working in RTC 4.0.5
We have a "Script Based Calculated Value" which sets value to a "readonly" attribute
This feature was working fine in RTC 4.0.2. After upgrading to RTC 4.0.5, the script is unable to set values to readonly attribute. Always throws error
If I make this field as writable, then the script works.
Are there any changes between 4.0.2 and 4.0.5 ?
How can I make this work in RTC 4.0.5?
This feature was working fine in RTC 4.0.2. After upgrading to RTC 4.0.5, the script is unable to set values to readonly attribute. Always throws error
CRRTC0299E: The work item with the ID 43215 cannot be saved because an attempt was made to change the attributes '[Task Completion Percentage]' which are not modifiable."
[Task Completion Percentage]
" is the attribute (custom)
If I make this field as writable, then the script works.
Are there any changes between 4.0.2 and 4.0.5 ?
How can I make this work in RTC 4.0.5?
Accepted answer
Is the attribute itself read-only, or is the presentation in the editor read-only? I think you would need the attribute itself to NOT be read-only but have the Editor Presentation be read-only.
I'm only on 4.0.0.1, but I have one calculated value and the attribute is not R/O but the presentation has it as R/O.
Susan
I'm only on 4.0.0.1, but I have one calculated value and the attribute is not R/O but the presentation has it as R/O.
Susan
Comments
But having the attirbute readonly worked fine in RTC 4.0.2
Yea, I can't comment on that part of it. I would say that there was a bug in 4.0.2 and they fixed that bug since if I say the whole attribute is read-only, then I wouldn't expect that RTC should allow programmatic changing of that attribute.
Susan
1 vote
Thanks Susan. Looks like this will work for me!
Cheers
Karthik