How to change values of read-only custom attributes programmatically?
Hi,
Kindly someone help me for this need.
I would require to programmatically update custom attribute values. I am getting failed in both the operations below.
- If i enable "Read-only" for that attribute, getting server exception "CRRTC0299E: The work item with the ID 137 cannot be saved because an attempt was made to change the attributes '[ID-StatusChange History]' which are not modifiable."
- If i uncheck the field "Permissions" for all the roles, Team Advisor error saying "Permission Denied"
Please advise.
Thanks
Sudar
Accepted answer
My understanding is that if you make the *attribute* read-only, then the attribute is read-only regardless of what method is attempting to change it (UI vs API).
You can make the attribute show as Read-only in the editor but leave the attribute itself read-write, which would allow the APIs to change it (assuming the userid which is running the API has permissions to change the attribute) but the anyone using the UI (eclipse/web) would see it as a R/O attribute and not be able to change anything.
Susan
You can make the attribute show as Read-only in the editor but leave the attribute itself read-write, which would allow the APIs to change it (assuming the userid which is running the API has permissions to change the attribute) but the anyone using the UI (eclipse/web) would see it as a R/O attribute and not be able to change anything.
Susan
Comments
1 vote