- Code: Select all
$F{mahnung} == 1 ? 1
: $F{mahnung} == 2 ? 2
: $F{mahnung} == 3 ? 3
: -1
The expression works for 0,1,2 and 3, but not for null. If the dataprovider is null, I don't get the desired result -1.
Is this problem, because I pass a foundset to iReport? How can I solve this?