Jump to content
Changes to the Jaspersoft community edition download ×

how to create variable in JasperDesign


2005 IR Help

Recommended Posts

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 .....

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...