It's all about the answers!

Ask a question

Dependent Enumeration with Multi-select List


Muktar Mohammed (1311924) | asked Jun 05 '12, 12:27 p.m.
Hello,

I've defined a dependent enumeration and it work fine if my choice is only one item in the dependent list.  However, I want to be able to make multiple selection, but the drop-down doesn't allow that.  Therefore, I changed the attribute type to Multi-Select List, but that broke the dependent enumeration relationship and now all items are listed in there.

Thank you for any help.
mm

3 answers



permanent link
Filip Wieladek (30413) | answered Jun 05 '12, 12:32 p.m.
It is an enhancement request currently in the backlog. You can find it here: https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/148601

Comments
Muktar Mohammed commented Jun 05 '12, 1:36 p.m. | edited Jun 12 '12, 1:55 a.m.

Thank you Filip.  At least I know what I'm trying to do isn't yet available.


Thanks.


permanent link
John S F Lander (901942) | answered Jun 07 '17, 6:15 a.m.

Following the link I have managed to implement this but is it possible to set the variables with multiple values(arrays) to be output ie
var CDODataOpsR= "com.hsbc.workitem.enumeration.childTeam.literal.l2",
      CDODataOpsW= "com.hsbc.workitem.enumeration.childTeam.literal.l35",
 if (parentteam === "AMG") {
return [CDODataOpsR, CDODataOpsW];

at the moment I have to set different variables to output each multi select enumeration list

Thanks


permanent link
Ralph Schoon (63.4k33646) | answered Jun 07 '17, 7:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jun 07 '17, 7:56 a.m.

 John, for all I can tell https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=148601 was not rightfully closed it only provides an example for an enumeration value, not an enumerationList (e.g. severityList).


I have played around with Enumeration and other list type attributes and I have, as far as I can remember, not been able to successfully implement JavaScript based value sets for them. I found no example as to how to compute the data to a list and how to return that back successfully (as far as I remember). 

I think I have been able to create this kind of value set providers in Java.

If you have to provide the data as an array [], it would be interesting how such an array can be created from values in a list (e.g. a http filtered value set) programmatically.

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.