It's all about the answers!

Ask a question

Set the value of checkbox by programming

Francisco Javier Moreno López (087) | asked May 29 '09, 8:53 a.m.

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.

2 answers

permanent link
Marcel Bihr, Jazz Work Item team (1.4k) | answered May 29 '09, 10:18 a.m.
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.


Jazz Work Item team

permanent link
Francisco Javier Moreno López (087) | answered Jun 02 '09, 4:27 a.m.
Thank you very much for your help!

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.