It's all about the answers!

Ask a question

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

Michele Pegoraro (1.8k14118103) | asked Nov 12 '12, 5:00 a.m.
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="" name="ProcessAction Value Set from String Attribute" providerId="">
<mapping dependentEnumeration="com.ubis.costumized.enumerations.processAction" sourceAttribute="testAttribute" sourceEnumeration="smallString"/>
<literal id="com.ubis.costumized.enumerations.processAction.literal.l50"/>
<literal id="com.ubis.costumized.enumerations.processAction.literal.l43"/>
<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 content="example1">
<literal id="com.ubis.costumized.enumerations.processAction.literal.l52"/>
<literal id="com.ubis.costumized.enumerations.processAction.literal.l41"/>

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

Have someone else try it?


2 answers

permanent link
Eric Jodet (6.3k5111120) | answered Nov 13 '12, 5:34 a.m.
Hello Michele,
you may want to read this article -
and check on the calculated values section.
Hope this helps.

permanent link
Michele Pegoraro (1.8k14118103) | answered Nov 19 '12, 3:07 p.m.

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

Now it works.

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.