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

Select all the enumeration values as "All" option are selected.

I have created attribute of type "Enumeration List" and added all the required values in the list of enumeration.
My requirement is there is one option in the list as 'All'. When we select this option (All) in the list then other data should be selected in enumeration list. 
Is this possible? How can I achieve this functionality in CCM.

0 votes


Accepted answer

Permanent link
You're asking for a "control", which I don't think exists.

You can consider these two options.
1. Just make one of the enumeration values with the meaning "All". This means that as long as this value is selected, it _means_ all other values are also selected.
2. Use the simple technique when using the Picker Enumeration List - click on the value at the top of the list, scroll down to the bottom, and Shift-Click on the value at the bottom. This way all the values are selected.
Ralph Schoon selected this answer as the correct answer

0 votes

Comments

Thanks Donald for the reply.

We consider the above options and also looking for the selection of all the values as 'All' is selected in enumeration list. Can we achieve this using follow up like 'All' is selected then using follow up we can save whole list of enumeration list data.

You can likely have a special "all" literal and if it is selected run a follow up action that saves all other literals in the enumeration list attribute.

Hi Ralph,


Do you have any reference to update the Enumeration List type of attribute using server api's.
I tried to save literal object and getting "java.lang.ClassCastException: java.lang.String incompatible with java.util.Collection"
Please provide me some usefull links if you have.

Thanks

It should be basically the same as described in https://rsjazz.wordpress.com/2012/08/20/manipulationg-work-item-enumeration-values/ .

Use IWorkItemCommon instead of IWorkItemClient.

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,950

Question asked: Sep 28 '16, 2:59 a.m.

Question was seen: 1,367 times

Last updated: Oct 04 '16, 2:45 a.m.

Confirmation Cancel Confirm