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

Create dropdown from value set

 How to I create a single select dropdown from a value set. I have been able to create a multi-select control with a value set (HTTP Filtered Value Set which is what I want to use here). But, see no way to create a single value selection from the collection. I tried setting to small string instead of string list (which produces multi-select).


I looked through jazz.net and could not find a solution. Any help provided is greatly appreciated.
Thanks.

0 votes


Accepted answer

Permanent link
Please see https://jazz.net/library/article/1093 do the RTC version. Search https://jazz.net/library/#sort=pubDate for the term 'attribute'.

Work items have attributes. Attributes have a type and the type determines the values. Same with links that have types.

For attribute types you have the choice of 'someAttributeType' and 'someAttributeType'List.

*List attribute types are multi value lists and allow to have multiple values from 'someAttributeType' to be selected.

Enumerations are a special type of 'someAttributeType' that have a fixed set of value literals. This is often used to represent values for business objects. It is possible to add and remove literals later.

Attributes are configured to be edited in editor presentations. The configuration of the attribute in the editor presentation, the type and the characteristic of being a List attribute, decides if something (usually enumerations) is presented as a drop down list or radio button or checkbox or multi value list.


Do not call it drop down, I get pimples when I read that. Any multi valued attribute type can be represented as a drop down selection. Call it attribute, attribute type and attribute value(s).


Brad Morse selected this answer as the correct answer

0 votes

Comments

Hi Ralph,

I get the attribute and type. Thanks.
But, what I'm looking for what  combination of Type in the Attribute setup and Kind in the editor presentation will produce a single selection Select list from a HTTP Filtered Value Set. I really don't want to use an Enumeration since pulling from an external database table.
Thanks.

No, you do not. Because you do not get the differenct between types and *List types.

A HTTP Filtered value set returns a string, maybe even more than one, I do not know. If you only want one value to be valid in the attribute e.g. of type string, the attribute has to be a string - not a stringList. Regardless how many values you select in the value set(for any type) as long as your attribute is not of type *List, it will always only contain one value.

If you have a *List type, you will always have the potential of multiple values, no matter what editor presentation kind.

 OK. I got it. Not that hard if I would have done some more testing. The Value Set Combo Kind in the editor and the Attribute Type Medium String (suppose could be Large or Small) works.

Thanks Again!

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
× 7,497
× 6,124
× 1,327

Question asked: Jul 09 '21, 10:44 a.m.

Question was seen: 527 times

Last updated: Jul 09 '21, 2:46 p.m.

Confirmation Cancel Confirm