popojxgjqnzeit Posted July 9, 2014 Share Posted July 9, 2014 HiI 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 More sharing options...
rajesh.sirsikar Posted July 9, 2014 Share Posted July 9, 2014 Hi popojxgjqnzeitWhy are you using the Sub Report to fetch the time data? Is there a specific reason for that?Thanks,Rajesh Sirsikarwww.rajeshsirsikar.com Link to comment Share on other sites More sharing options...
popojxgjqnzeit Posted July 10, 2014 Author Share Posted July 10, 2014 yes,In the Mainreport I fetch Hosts from the DB and in the subreport I fetch losses for every Host.At the End of Every Host I like to have the total Times from every losses category. Link to comment Share on other sites More sharing options...
popojxgjqnzeit Posted July 10, 2014 Author Share Posted July 10, 2014 push Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now