Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

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)

0 votes


Be the first one to answer this question!

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,939

Question asked: Mar 15 '16, 1:19 p.m.

Question was seen: 1,636 times

Last updated: Mar 15 '16, 2:06 p.m.

Confirmation Cancel Confirm