JasperStudio How to use conditional style?

后端 未结 1 1827
伪装坚强ぢ
伪装坚强ぢ 2021-01-26 16:58

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

相关标签:
1条回答
  • 2021-01-26 17:23

    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"/>
    
    0 讨论(0)
提交回复
热议问题