0
我想隱藏碧玉i-report中的文本字段,當它們爲空時。如何在i-report中的字段爲空時隱藏
所以我把這種表達在這些領域的打印當表達
$F{field_cashPaymentReceiptMode} != null && !"".equals($F{field_cashPaymentReceiptMode})
但後來我在編譯的報告得到了一個錯誤。
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
1. The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files
value = ((java.lang.String)field_cashPaymentReceiptMode.getValue())!=null &&!"".equals(((java.lang.String)field_cashPaymentReceiptMode.getValue())); //$JR_EXPR_ID=33$
<-------------------------------------------------------------------->
1 errors
請幫幫我。