JasperReport question: I have table with user data and % value of completed test. How to display the String message of value if it is in certain Number range.
Values between 0 and 59 = `Try again`
Values more than 59 = `Doing great`
I used for
Parameter1 $P{Value 1}
Class: java.lang.Long
Expression: $F{percentage}<59.00
Parameter1 $P{Value 2}
Class: java.lang.Long
Expression: $F{percentage}>59.01
Created Detail [Text Field] with following Expression:
IF($P{Value 1},`Try again`,`Doing great`)
Report State:
Value 1 cannot be resolved to a variable.