openspac3 Posted August 11, 2011 Share Posted August 11, 2011 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now