It's all about the answers!

Ask a question

Type-Ahead in Workitem's Attribute Enumerations?


Oliver Drees (1333) | asked Nov 09 '12, 7:57 a.m.
Dear all,

we will have enumerations filled from REST requests from other sources. Some of them will have several hundred of values. With the default behaviour if you type a letter you jump to the first occurence of a value starting with this letter. If you type a second one you jump to the first occurence of that letter. This leaves the user the necessity to scroll through a still quite long list to find the value they would like to choose.

Is there an easy way to get type-ahead (in the web client and the Eclipse client) so that the possible values are reduced to the beginning char sequence so that the list of possible values gets constantly smaller with each new entered letter?

Thanks in advance,

- Oliver -

Accepted answer


permanent link
Gabriel Enriquez (3463) | answered Nov 12 '12, 8:32 p.m.
JAZZ DEVELOPER
Hi Oliver,

You might want to use a Script-based Filtered Value Set Provider, which works for both clients. Please take a look at this for an example.

In short, your script will be called with the user input (as "filter") using "getFilteredValueSet" interface. This script will have to
a) retrieve the values from your service
b) filter out its values using the "filter" parameter
Oliver Drees selected this answer as the correct answer

Comments
Oliver Drees commented Nov 13 '12, 12:56 a.m.

Hello Gabriel,

thank you very much. This was exactly what I was looking for.

- Oliver -

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.