raysefo Posted November 20, 2007 Share Posted November 20, 2007 Hello, What i want to do is, i have a field and if this field is NOT NULL, then count. Here is the code below; if($F{KISI_ID}.intValue() != null){ $V{count}.intValue()= $V{count}.intValue() + 1;} But it gives errors; it.businesslogic.ireport.gui.logpane.ProblemItem@10e1ea8 Syntax error on token "(", ; expected Line 48, Column 23 /jasperReport/variable[1]/variableExpression[1] and it.businesslogic.ireport.gui.logpane.ProblemItem@1feb264 Syntax error on token ")", delete this token Line 48, Column 23 /jasperReport/variable[1]/variableExpression[1] Link to comment Share on other sites More sharing options...
seemar Posted November 20, 2007 Share Posted November 20, 2007 Try with the below expression (condition) ? action : action Link to comment Share on other sites More sharing options...
raysefo Posted November 21, 2007 Author Share Posted November 21, 2007 i m new to ireports. Would you please explain it a little bit more? Any samples how to create expressions? thanks Link to comment Share on other sites More sharing options...
svenn Posted November 22, 2007 Share Posted November 22, 2007 You want to do this ( $F{KISI_ID}.intValue() != null ? $V{count}.intValue() + 1 : 0 ) or ( $F{KISI_ID}.intValue() != null ? $V{count}.intValue() + 1 : $V{count}.intValue()) 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