[ 
https://issues.apache.org/jira/browse/OFBIZ-4863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Smits updated OFBIZ-4863:
--------------------------------
    Comment: was deleted

(was: The error shown in one of the chart screens is:

{code}
he following items have errors:

ReportDesign (id = 1):
+ Unhandled exception when executing script.

ReportDesign (id = 1):
+ There are errors evaluating script "num = 2;
data = null;

projectActiveList = null;
projectClosedList = null;

projectActiveData = 0;
projectClosedData = 0;

try{
    var projectActiveList = delegator.findByAnd("WorkEffortAndProduct", 
UtilMisc.toMap("productId", productId, "workEffortTypeId", "SCRUM_PROJECT", 
"currentStatusId", "SPJ_ACTIVE"), null, false);
     if(projectActiveList != null) projectActiveData = projectActiveList.size();
    else projectActiveData = 0;
    
    var projectClosedList = delegator.findByAnd("WorkEffortAndProduct", 
UtilMisc.toMap("productId", productId, "workEffortTypeId", "SCRUM_PROJECT", 
"currentStatusId", "SPJ_CLOSED"), null, false);
     if(projectClosedList != null) projectClosedData = projectClosedList.size();
    else projectClosedData = 0;
    
}catch(e){
        Debug.logError(e, module);
}
":
Fail to execute script in function __bm_OPEN(). Source:
------
" + num = 2;
data = null;

projectActiveList = null;
projectClosedList = null;

projectActiveData = 0;
projectClosedData = 0;

try{
    var projectActiveList = delegator.findByAnd("WorkEffortAndProduct", 
UtilMisc.toMap("productId", productId, "workEffortTypeId", "SCRUM_PROJECT", 
"currentStatusId", "SPJ_ACTIVE"), null, false);
     if(projectActiveList != null) projectActiveData = projectActiveList.size();
    else projectActiveData = 0;
    
    var projectClosedList = delegator.findByAnd("WorkEffortAndProduct", 
UtilMisc.toMap("productId", productId, "workEffortTypeId", "SCRUM_PROJECT", 
"currentStatusId", "SPJ_CLOSED"), null, false);
     if(projectClosedList != null) projectClosedData = projectClosedList.size();
    else projectClosedData = 0;
    
}catch(e){
        Debug.logError(e, module);
}
 + "
-----
A BIRT exception occurred. See next exception for more information.
ReferenceError: "Debug" is not defined. 
(/report/data-sets/script-data-set[@id="14"]/method[@name="open"]#20).
{code})

> Scrum productstatistics shows errors
> ------------------------------------
>
>                 Key: OFBIZ-4863
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4863
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: specialpurpose/scrum
>    Affects Versions: Release 11.04.01, Release Branch 12.04, Trunk
>            Reporter: Pierre Smits
>
> When accesssing the product statistics page in scrum following errors are 
> shown
> On the Project and Sprint Information Chart:
> The following items have errors:
> Chart (id = 10):
> + A BIRT exception occurred. See next exception for more information.
> Invalid javascript expression: row["DataName"] (Element ID:10)
> The following items have errors:
> Chart (id = 7):
> + A BIRT exception occurred. See next exception for more information.
> Invalid javascript expression: row["ProjectName"] (Element ID:7) 
> On the Backlogs Information Chart:
> The following items have errors:
> Chart (id = 10):
> + A BIRT exception occurred. See next exception for more information.
> Invalid javascript expression: row["DataName"] (Element ID:10) 
> The following items have errors:
> Chart (id = 10):
> + A BIRT exception occurred. See next exception for more information.
> Invalid javascript expression: row["DataName"] (Element ID:10)
> On the Tasks Information Chart:
> The following items have errors:
> Chart (id = 10):
> + A BIRT exception occurred. See next exception for more information.
> Invalid javascript expression: row["TaskName"] (Element ID:10) 
> The following items have errors:
> Chart (id = 12):
> + A BIRT exception occurred. See next exception for more information.
> Invalid javascript expression: row["TaskType"] (Element ID:12) 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to