Can I make attribute readonly in current state after clicking on save button?
Hello All,
Accepted answer
Unfortunately the description is not very clear, however the basic mechanisms available are advisors/pre-conditoons Read-only by type and state and read-only for condition where you can provide a JavaScript or Java Condition. You can
only make attributes read only (some stuff like comments are not attributes).
You can write a precondition that prevents saving of a work item for certain conditions, but you can not make the attribute presentation read only, so the user can enter values and will only be blocked when trying to save.
There are no other mechanisms available that make things "read only".
Comments
Hi Ralph,
As already stated, unfortunately the description is not very clear, so I won't answer it as I don't understand it, really.
I can only add that the attribute presentation does not matter. Radio button or whatever has no impact. What does not make sense is the save. What is the change that the save does that is now supposed to prevent the save. If you select another value in your enumeration, the condition should evaluate this immediately and can react to it.
1. if you use read-only for condition the condition can evaluate the current state and other attributes values and take the selected workflow action into consideration as well.
Hi Ralph,
No. You only make an attribute read only based on some value. "After save" is not a valid condition.