I'm a newbie at iReport and I'm having problems getting the "print when expression" right:
I have a field $F{descrizione} that contains the dishes ordered. At the end of my document I created a text field that i want to be printed when the field $F{descrizione} contains the element PIATTO PAESANO. So I used the Print when expression function.
I wrote:
$F{descrizione}.contains("PIATTO PAESANO")
It works only when $F{descrizione} contains PIATTO PAESANO alone, but if $F{descrizione} contains even other dishes it stop working.
Moreover It is possible to print the text field at the end of the document as many times as indicated in the field $F{quant} linked to the field $F{descrizione}?
thanks
0 Answers:
No answers yet