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

Set the value of checkbox by programming

Hello,

I have created a custom attribute of the type String in a WI.
In the Presentation, I use this custom attribute like a CheckBox - Multi-Select List.

The Presentation is fine but I dont know how to set the value (true, false) of check box by programming.

Any help would be appreciated. Many thanks.

0 votes



2 answers

Permanent link
Hi
Setting the value in the UI directly is not possible. What you have to do is set the value on the work item in a way that the UI makes the checkboxes. The value in the work item is the comma-separated list of literal ids.

The class DecoratedList has helper methods to split/join literal ids.

Regards

Marcel
Jazz Work Item team

0 votes


Permanent link
Thank you very much for your help!

0 votes

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
× 10,941

Question asked: May 29 '09, 8:53 a.m.

Question was seen: 4,816 times

Last updated: May 29 '09, 8:53 a.m.

Confirmation Cancel Confirm