popojxgjqnzeit Posted July 9, 2014 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?
rajesh.sirsikar Posted July 9, 2014 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
popojxgjqnzeit Posted July 10, 2014 Author 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.
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