jaumeg Posted April 19, 2007 Share Posted April 19, 2007 Hi all, I have a question that i'm sure you may have been solved. I need to change the colour of a $F{field} when a condition is evaluated in the detail band. When I get a value 'Doctor unknow' I need to change the color of this field to RED. I would like to change the negative value to red as well. I have to use some scriptlet ? any example or suggestion will be very appreciatted. Thanks in advance for your help.Post edited by: jaumeg, at: 2007/04/20 10:10 Link to comment Share on other sites More sharing options...
kaunietiss Posted April 23, 2007 Share Posted April 23, 2007 and what about using a styled text? Link to comment Share on other sites More sharing options...
jaumeg Posted April 25, 2007 Author Share Posted April 25, 2007 HI kaunietiss, The problem is that I don't know how to do it and how to evaluate the condition.. Do you have some example ? Thanks. Link to comment Share on other sites More sharing options...
kaunietiss Posted April 25, 2007 Share Posted April 25, 2007 Code:condition ? <style backcolor="red">$F{field}</style> : $F{field} and dont forget to check "Is styled text" checkbox in "Fonts" tab in the field properties. Link to comment Share on other sites More sharing options...
jaumeg Posted April 25, 2007 Author Share Posted April 25, 2007 Thank you kaunietiss ! ;) 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