Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jasper report - calculation & Variable Expression

 
Maitri Pujara
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using i-report tool for reports in my application. I am doing totals for some fields and want to use these grand totals to calculate the value of some other variable.

E.G.

I have x,y,z fields. x1,y1 as totals. x1, y1 are variables. Now, I want to use x1 and y1 to calculate the value of Z1 which is not toal, but result of some expression.

like.. Z1= (x1/y1)*100

I think I can keep this expression in properties of Z1 in 'variable expression' but what I should set as 'Calculation'.

Please help. It is urgent.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.coderanch.com/how-to/java/PatienceIsAVirtue

More important than patience, even, is choosing the right forum. I couldn't figure out how this related to JSF and chances are that no one else here could either. Always look for the forum where the experts in your question hang out.
 
Maitri Pujara
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought I would get somebody who knows Jasper report.. as I was in hurry... but anyway I got the solution by myself..

But thanks for pointing it to..

It is good habit of replying to as many people as you can.. ;-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic