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.
|
Accepted answer
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
Comments
Anurag Patel
commented Sep 29 '16, 3:56 a.m.
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/ .
|
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.