Jump to content
We've recently updated our Privacy Statement, available here ×

sum of times from a subreport in the main report


popojxgjqnzeit

Recommended Posts

Hi

I collect Times like 41:20:13 or 00:02:10 in a Subreport (in defferent categorys like: warning, critical).

Now, I want to get a sum of all this times in the mainreport (a sum per category).

How I do that?

I Tryd to make for every category a variable with a expression like this:

$F{IsHost}.intValue() == 1 ?    $F{state}.intValue() == 0 ?0:    $F{state}.intValue() == 1 ?0:    $F{state}.intValue() == 2 ?0:0:    $F{state}.intValue() == 0 ?0:    $F{state}.intValue() == 1 ? $F{dauer}:    $F{state}.intValue() == 2 ?0:    $F{state}.intValue() == 3 ?0:0[/code]

But the report generate faild:

net.sf.jasperreports.engine.JRRuntimeException: java.lang.ClassNotFoundException: 0[/code]

I don't know witch "value class name" I have to choose... and how i transver this to the main report and why i have this error....

Can someone help me?

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

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