dewie Posted January 15, 2008 Share Posted January 15, 2008 Hi i trying to do a conditional style For that i have to make a condition that checks if a value is larger then another value. I have tried : new Boolean($F{hour_max} > $P{task_minutes) But i get an > invalid operateror for double. I tried to google, but could not find a solution Any ideas ? Link to comment Share on other sites More sharing options...
svenn Posted January 15, 2008 Share Posted January 15, 2008 The error you got was invalid operateror for Double Double is a objectdouble is a primative Wehen doing a comparison of that sort it must be between two primative values. Try new Boolean($F{hour_max}.doubleValue() > $P{task_minutes}.doubleValue()) Link to comment Share on other sites More sharing options...
dewie Posted January 15, 2008 Author Share Posted January 15, 2008 Thanks, ik could swear i tried that :( Link to comment Share on other sites More sharing options...
dewie Posted January 15, 2008 Author Share Posted January 15, 2008 Damm it works but now i have a problem that the condition is calculated to early, i think i have to work with to fields then 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