表达Jasper报告时打印

时间:2013-06-06 15:26:53

标签: jasper-reports

以下打印时表达式是否为invaild:

29 <= $F{selfawarenesscore} <= 45

我在 JasperReports Server

中收到以下错误
com.jaspersoft.jasperserver.api.JSExceptionWrapper: 
Errors were encountered when compiling report expressions class file:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
calculator_subreport2_EmotionalSelfAwareness40QI41_1370531739954_546871: 233: 
unexpected token: <= @ line 233, column 83. 1 error

我想在 $ F {selfawarenesscore} 是上述范围时打印文本字段。

感谢任何帮助。

1 个答案:

答案 0 :(得分:1)

尝试:

 $F{selfawarenessscore} >= 29 && $F{selfawarenessscore} <= 45