aspose file tools*
The moose likes Other Open Source Projects and the fly likes Jasper report - calculation & Variable Expression Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Jasper report - calculation & Variable Expression" Watch "Jasper report - calculation & Variable Expression" New topic
Author

Jasper report - calculation & Variable Expression

Maitri Pujara
Greenhorn

Joined: Jun 04, 2012
Posts: 4
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

Joined: Jun 25, 2001
Posts: 16054
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Maitri Pujara
Greenhorn

Joined: Jun 04, 2012
Posts: 4
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.. ;-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jasper report - calculation & Variable Expression