Using variables in Conditional Style

前端 未结 3 976
栀梦
栀梦 2020-12-19 06:26

I have a Title band with a Text Field containing a calculated Variable $V{avg_perc}. The Text Field has the evaluati

3条回答
  •  粉色の甜心
    2020-12-19 06:53

    in your view ireport designer.

    click on the field and in the properties panel.: markup = styled selected

    Right click on the fied. edit expression:

    ($F{fila1}.equals("c") ? "" : $F{fila1})
    

    or xml

    "+ $F{fila1}+"" : $F{fila1})]]>
    

提交回复
热议问题