2005 IR Help Posted August 26, 2006 Share Posted August 26, 2006 By: Michael Hauck - swissmike Image If 2004-07-13 02:36 I have 2 images. I get them as URL. $P{imageboolean_false} $P{imageboolean_true} I also have a field $F{valid} How can I tell the report to print the first image when the content of the field {valid} is 0 and the second image when it's any other number. I have tried adding a variable with the following expression: "0".equals($F{valid}) ? $P{imageboolean_false} : $P{imageboolean_true} This doesn't work. I always get the second image. What am I doing wrong? By: Tobias Gaekle - ike987 RE: Image If 2004-07-13 04:20 i'd guess $F{valid} is not of type java.lang.String. try "0".equals(String.valueOf($F{valid})) By: Michael Hauck - swissmike RE: Image If 2004-07-13 06:28 Yes, that did it! Thanks! :) 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