RTC Enumerations: Ability for Tester to Add a Value
![]()
MK Skelton (25●13)
| asked Dec 20 '17, 12:31 p.m.
retagged Jan 05 '18, 4:59 p.m. by Ken Tessier (841●1●7) Hello,
|
Accepted answer
![]() Matthew, I looked into a concept for this a few years ago, but did not apply into production so what IBM say maybe true. I was able to add in a New Enumeration list and then specify the Enumeration attribute. When you add in the new enumeration attribute presentation in Eclipse click the "Allow to add new Literals" I didn't take the concept into production and I'm not sure if this is supported by IBM. Anyway - something to think about. Also you have another option of driving the list using scripting https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_Example
Script Based Value Set Note: You can find general information about script-based attribute customization in the Using scripts for attribute customization section. You may provide custom value sets using scripts. Values which are permitted for an attribute must be explicitly included in the returned value set. Here is a skeleton for implementing Value set providers using a script:
dojo.provide("org.example.workitems.providers.ValueSetSkeleton"); (function() { dojo.declare("org.example.workitems.providers.ValueSetSkeleton", null, { getValueSet: function(attributeId, workItem, configuration) { var result= []; result.push("a"); result.push("b"); return result; } }); })();
Regards Matt MK Skelton selected this answer as the correct answer
Comments Yeah, I'm leery of allowing it into PROD as well and IBM did confirm yesterday after researching this that it is not an existing an option. I may submit a RFE for this, but in the meantime, thanks you for this solution :)
|
One other answer
![]() Another option for you to consider and I think this meets with all your requirements: Configuring an HTTP filtered value set provider Regards Matt |