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.
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
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
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