It's all about the answers!

Ask a question

dojo List map function error


Chidambaram L (23424390) | asked Mar 15 '16, 1:19 p.m.
edited Mar 15 '16, 2:06 p.m.
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.

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)

Be the first one to answer this question!


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.