Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How can I make a workitem uneditable on save if one of the fields(a checkbox) is checked?

I want to make a workitem uneditable on save if a field(a checkbox) is checked. How can I achieve this?


Thanks
Lipi

0 votes



One answer

Permanent link
 Hello Lipi,
I would say that the opposite is straight forward:
prevent from saving if a checkbox is not checked: use Required Attributes For Type and State
https://jazz.net/help-dev/clm/topic/com.ibm.team.workitem.doc/topics/t_defining_required_properties.html

Now the prevent from saving if a checkbox is checked might be tricky,
possibly, I would create a hidden calculated attribute - value set based on checkbox - and enable save based on this hidden attribute's value

checkbox is selected: customAttribute value is null
checkbox is NOT selected: customAttribute value is NOT null

I would then use Required Attributes For Type and State with this custom attribute.

0 votes

Comments

What I would want to do is this:
If a checkbox is checked, the on saving the workitem, all fields should become readonly, ie, it should not allow further editing. If the checkbox is not checked then all the fields remain editable.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jun 13 '14, 7:12 a.m.

Question was seen: 3,549 times

Last updated: Jun 16 '14, 2:49 a.m.

Confirmation Cancel Confirm