how to create variable in JasperDesign

By: Wendy Hsi - whsi
how to create variable in JasperDesign
2004-01-13 07:01
Hi,

I was wondering if someone could help me with this. I want to calculate the total value of everthing in a group.

I can find lots of examples when done in xml file. However i am creating the report without xml file and i am just creating a jasperDesign in the code. If someone can help me out or give me some examples as to how i can declare this variable to sum up all the values in a column (price). I am getting all my data from the database.

ex.
Group item price
Food
Apple $10
Orange $23
Banana $29
Total $62 <---- how do i declare this.
Toys
Plush $20
Barbie $10
Total $30

Thanks,
Wendy





By: Wendy Hsi - whsi
RE: how to create variable in JasperDesign
2004-01-13 11:47
ok i figured it out .....
2005 IR Help's picture
Joined: Aug 9 2006 - 3:40am
Last seen: 16 years 9 months ago

0 Answers:

No answers yet
Feedback
randomness