JasperStudio How to use conditional style?

后端 未结 1 1832
伪装坚强ぢ
伪装坚强ぢ 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条回答
  •  闹比i
    闹比i (楼主)
    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.

    
    

    0 讨论(0)
提交回复
热议问题