It's all about the answers!

Ask a question

Can I make attributes read-only based on workflow state?


Andrew Stevens (1482729) | asked Feb 08 '12, 5:13 p.m.
Hi,

Is it possible to make attributes' editor presentations read-only in certain workflow states? I can see an option to hide things based on state, but the read-only property only allows True, False and Inherit from Attribute. I could make the whole work item read-only using the "Prevent Editing" precondition (com.ibm.team.workitem.advisor.stateBasedModification) but I only want certain attributes to be immutable.
The only workaround I've thought of so far is to create a second set of attributes using calculated value providers to mirror the original attributes' values; I can make the second set read-only, and use the "hide" properties to show one set or the other depending on the workflow state. Is there no better way?


Andy.

3 answers



permanent link
Ralph Schoon (63.6k33646) | answered Feb 09 '12, 12:56 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi,

as far as I know with 3.0.1.1 you can only hide based on workflow state. Read-only does not have that granularity in the presentation.

permanent link
wei zhu (1) | answered Oct 09 '12, 12:20 a.m.
Hi.4.0 is available

Comments
sam detweiler commented Oct 21 '12, 8:23 a.m.

but I don't think there is any change here..  you can hide, but not make read only by field


permanent link
Gregory Payan (111) | answered Oct 09 '12, 2:39 a.m.
edited Oct 21 '12, 6:18 a.m.
obviously 4.0 is available

buy real plus 1 | buy cheap google 1

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.