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

How can I define a ValueSet Enumeration provider for smallString source attribute?

 Hi,
I'd like to use the out of the box Value Set Provider in order to filter the value of an enumeration based on the value of another attribute. This works well with attribute sources that are enumeration, or category or something like this but I'd like to configure it using string value attribute. In this case there is not a graphic interface but it says that I can configure it from the sources. I've tried with this:

<valueSetProvider id="com.ibm.team.workitem.valueproviders.VALUE_SET_PROVIDER._l_M-kCp0EeKWC7o3W1vz1g" name="ProcessAction Value Set from String Attribute" providerId="com.ibm.team.workitem.common.internal.attributeValueSetProviders.FilteredValueSetProvider">
<mapping dependentEnumeration="com.ubis.costumized.enumerations.processAction" sourceAttribute="testAttribute" sourceEnumeration="smallString"/>
<value>
<literal id="com.ubis.costumized.enumerations.processAction.literal.l50"/>
<literal id="com.ubis.costumized.enumerations.processAction.literal.l43"/>
</value>
<value content="example1">
<literal id="com.ubis.costumized.enumerations.processAction.literal.l51"/>
<literal id="com.ubis.costumized.enumerations.processAction.literal.l49"/>
<literal id="com.ubis.costumized.enumerations.processAction.literal.l48"/>
</value>
<value content="example1">
<literal id="com.ubis.costumized.enumerations.processAction.literal.l52"/>
<literal id="com.ubis.costumized.enumerations.processAction.literal.l41"/>
</value>
</valueSetProvider>

but it does not work (also for the default value) and it seems to not log any error.

Have someone else try it?

Thanks,
Michele

1

0 votes



2 answers

Permanent link
Hello Michele,
you may want to read this article - https://jazz.net/library/article/1003/#calc-values
and check on the calculated values section.
Hope this helps.

0 votes


Permanent link

Ok, I've find the error. <mapping> must be closed after all the <value> tags.

Now it works.

0 votes

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
× 12,014

Question asked: Nov 12 '12, 5:00 a.m.

Question was seen: 6,392 times

Last updated: Nov 19 '12, 3:07 p.m.

Confirmation Cancel Confirm