Problem with value providers
We recently upgraded our server to RTC 2.0.0.2 to use new value providers feature documented here: https://jazz.net/wiki/bin/view/Main/AttributeValueProviders
We have customized our process to manage ODC defects classification. We have OdcTrigger field that is dependent from OdcActivity. Both are enumerations. Everithing works fine using RTC Java client be we have problems on the Web UI. Creating a new defect both fields start with 'Unassigned' value and the second field is correctly disabled. When I select a value for OdcActivity, the OdcTrigger field is correctly enabled on the Java client but this doesn't work on WebUI. Furthermore, if I set the first field back to 'Unassigned' value I get a 'TypeError: _35 is null' error. Since this field is required it is not possible to save the work item. Here are some extract of our process.xml.
In my opininon this is a defect Is there a workaround or fix for this ? Thanks |
6 answers
On 2/9/10 11:23 AM, bportaluri wrote:
We recently upgraded our server to RTC 2.0.0.2 to use new value Unfortunately, I can't see the entire XML, but I assume you have elements of the form: <value> </value> I.e. <value> elements with no <literal> child elements. This leads to the bug that you described (which is fixed in the meantime). IMO, all <value> elements need a <literal> sub element, as there is no 'undefined' value for an enumeration attribute. I would suggest to add the 'Unassigned' literal as a child to the empty <value> elements. -- Regards, Patrick Jazz Work Item Team |
Sorry but the XML was not correctly displayed.
This should be better:
We do not have <value> elements without a <literal> sub element. The problem is that when OdcActivity is not yet set it has an 'Unassigned' value that has no mapping to OdcTrigger. This is the desired behavior and works correctly on RTC client. Thanks for the quick reply. |
We do not have<value> elements without a<literal> sub I see. Could you create a work item for this and attach the XML? In the meantime, you could add a mapping for the Unassigned value in OdcActivity to an Unassigned value in OdcTrigger. -- Regards, Patrick Jazz Work Item Team |
Here is the defect: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=105684
|
Defining 'Unassigned' values for enumerations and adding the mapping follows has fixed the problem.
I have attached the new process.xml in the defect. |
Hello,
The filter works in the rich client but not in the Web UI. I'm using RTC 2.x. Did you get it to work in the Web U and if so what did you do? Thanks in advance. |
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.