Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354545 - Birt Sum the integer or decimal as string
Summary: Birt Sum the integer or decimal as string
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 3.7.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 4.4.0   Edit
Assignee: Birt-ReportDesigner CLA
QA Contact: Maggie Shen CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-11 15:34 EDT by M P CLA
Modified: 2014-02-28 20:34 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description M P CLA 2011-08-11 15:34:58 EDT
Birt Sum the integer or decimal as string When in 

Spring source tool => Report Design perspective.

When in script mode For

Report Design => initialize Method.

When i include below two package

importPackage(Packages.java.util);
importPackage(Packages.java.lang);

And when i do some of 2 decimal type of column from scripted data set It sum it as string on product string like 
"	131155299857549634373722897122083369204074743852453774316340430397393943541308401983224429713280922651126260240851979170188841415"

above insted of do SUM.
e.g
entry[0] += Number(imp);

When i use below expression. It work fine.

entry[0] += Number(imp).longValue();


Also with  e.g
entry[0] += Number(imp);

If i remove importPackage(Packages.java.lang); package then it's work fine.

So it's create problem when i include both package.
Comment 1 Xiaoying Gu CLA 2011-08-22 23:36:59 EDT
Hi,

would you please attached your report? I don't quite understand your problem. Thanks.
Comment 2 Linda Chan CLA 2014-02-28 20:34:49 EST
See #comment1.
If the issue still exists for you, please feel free to reopen the bug with more details on how to reproduce.