dojo List map function error
We are using RTC 5.0.2. DeploymentLevel is an enumList attribute. This code shows error message in ccm.log function in map function. But the calculated value is showing up correctly in the attribute.
This code shows an error in line 4 in ccm.log.
var DL_List = workItem.getLabel("deploymentLevel");
var DL_String = "";
if (DL_List != null) {
DL_String = DL_List.map(function(item) {
return item.id;
}).join("|");
console.log ("DL_String: " + DL_String);
}
if (DL_String.indexOf("Global") == -1) {
for (var count=0; count<dl_list.length; count++)
{ out += DL_List[count].label + ":technical_author"; }
}
return out;
This code shows an error in line 4 in ccm.log.
2016-03-15 22:38:35,464 [http-bio-9443-exec-41 @@ 18:48 pm <Initial Page Load@ef256362-1f2f-4077-922e-c9b37dd7758e> /ccm/web/projects/Rational%20Admin%204] ERROR com.ibm.team.workitem.common - Error invoking value provider 'com.ibm.team.workitem.valueproviders.VALUE_PROVIDER._OlobwIHREeW2LqkTXndn-w' com.ibm.team.repository.common.TeamRepositoryException: Unexpected exception type Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find function map in object enum1, enum2, . (dngprocessarearolesprovider.js#28)