The JR rendering engine always evaluates conditional styles when it begins to render a band, delayed conditional style evaluation is not currently supported.

Still, you can use a styled text field with "Auto" evaluation type to change the style of the biggest value. You'd obviously need to create a variable calculating the highest value and then create a text field with an expression looking something like this ("f" is the value field and "max" is the variable): $F{f}.equals($V{max}) ? ("<style forecolor=\"red\">" + $F{f} + "</style>") : $F{f}.toString()

HTH,
Lucian

Dan Adams wrote:
I have a column of values and would like to apply a style (red text
color) so that the highest number in the column gets colored. Whats the
best way to do this? Thanks.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to