I am desperately trying to format the Field \"FilmID\" based on it\'s value. Could you provide me with a conditional expression to format values >= 3 in red color ?
Cond
Assuming that $F{Revenue}
is numeric (Integer
, Double
, Float
ecc)
if you are using jasper report version 6.0
or above there is nothing wrong with your style expression, for jasper report 3.0
, you need new Boolean($F{Revenue} > 10000)
in expression.
You need also to be sure that you apply the style to a report element.
<reportElement style="style1" x="49" y="4" width="100" height="20" uuid="865e11e4-c2d4-40ac-be06-dc1359dc93c0"/>