Problem with dependent enumeration in web browser
Hello guys,
I have the following problem:
I created two enumeration attributes in a workitem: Area and Subarea.
In "Subarea" attribute I created a set value based on dependent enumeration.
In RTC client, when I change the value in "Area" combobox, an error notification is showed in "Subarea" combobox when the value selected is not applicable. This behaviour does not occur in web browser.
I'd like to know if this behaviour is possible in web browser and how I do it.
Also, I'd like to know if is possible a refresh in combobox "Subareas" when I change the "Area" combobox, so that combobox "Subareas" shows only the applicable values. (now, if i select a value in Subareas combobox and then change de Area combobox, the value I selected in Subarea remains the same)
Version of RTC is 4.0.3
I have the following problem:
I created two enumeration attributes in a workitem: Area and Subarea.
In "Subarea" attribute I created a set value based on dependent enumeration.
In RTC client, when I change the value in "Area" combobox, an error notification is showed in "Subarea" combobox when the value selected is not applicable. This behaviour does not occur in web browser.
I'd like to know if this behaviour is possible in web browser and how I do it.
Also, I'd like to know if is possible a refresh in combobox "Subareas" when I change the "Area" combobox, so that combobox "Subareas" shows only the applicable values. (now, if i select a value in Subareas combobox and then change de Area combobox, the value I selected in Subarea remains the same)
Version of RTC is 4.0.3
2 answers
Sam,
I did this configuration. The problem occurs when i follow the steps:
1. I set a value in Area combobox
2. The Subarea combobox is updated
3. I select a valid value in Subarea combox
4. Then I change the value in Area combobx. In this moment, the Subarea combobox remains with the value I selected in step 3. In fact, the combobox has the content updated, but at the UI, the value selected is invalid.
The subarea apresentation is not refreshed when I set the value at the Area combobox.
Sorry my english...I am brazilian and I don't speak fluently.
I did this configuration. The problem occurs when i follow the steps:
1. I set a value in Area combobox
2. The Subarea combobox is updated
3. I select a valid value in Subarea combox
4. Then I change the value in Area combobx. In this moment, the Subarea combobox remains with the value I selected in step 3. In fact, the combobox has the content updated, but at the UI, the value selected is invalid.
The subarea apresentation is not refreshed when I set the value at the Area combobox.
Sorry my english...I am brazilian and I don't speak fluently.
Comments
Very good explanation. I have seen this problem too. since 3.0.1 on the web UI.
it works the first time, not the second and on.
I experience the same with 5.0.1. The dependent enumeration is not refreshed ... there is a little red x and the message is that the value is not valid. If is not valid, why show it?
Is there a fix for this available? a workaround? does it work as designed or is there a defect open?
this is working as designed. the dependent enumeration does NOT create javascript to CHANGE the downstream UI selections..
Hi, I hope the following tips can help you
1. Add a default element to the dependent enumeration, for example <Select a value>.
2. Get the id from "process configuration source" for this new value, in this case "com.xxx.process.enum.literal.l25".
3. Add a calculated value on workitem/Attribute Customization.
add de next lines to the script
//////////////////////////////
dojo.provide("com.workitem.custom.getValue.xxxxx");
dojo.require("com.ibm.team.workitem.api.common.WorkItemAttributes");
(function() {
var WorkItemAttributes = com.ibm.team.workitem.api.common.WorkItemAttributes;
dojo.declare("com.workitem.custom.getValue.xxxxx", null, {
getValue: function(attribute, workItem, configuration) {
return "com.xxx.process.enum.literal.l25"
}
});
})();
////////////
4. in the type and attribute section of the workitem type, edit the dependent enumeration, on the field calculated value by selecting the recently created script
Comments
sam detweiler
Apr 01 '14, 10:21 a.m.yes, this should work (sub refresh to selected list)..