nithya Posted August 10, 2006 Share Posted August 10, 2006 Hi all, I wanna dynamically add images to a cell by validating a condition, my condition is as follows, Code:$F{row1} . intValue() == 1 ? 0 : 1 Now wanna to change this condtion to something like this Code:[code]$F{row1} . intValue() == 1 ? image1 : image2 How can i achieve it Thanx in advance -Nithya Link to comment Share on other sites More sharing options...
dprogrammer Posted August 24, 2006 Share Posted August 24, 2006 This one works for me.Add an image on your report, click properties and then add this formula in tab Image -> Image Expression:$F{row1} . intValue() == 1 ? "C:\MyAppImagesimage1.gif":"C:\MyAppImagesimage2.gif" Make sure you have image1.gif and image2.gif in above folder. 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