How to hide a text field

i have a question.

how to hide a text field in jasper report depend on another text field value.

kesabaranbravo's picture
Joined: Nov 25 2014 - 8:28pm
Last seen: 8 years 5 months ago

1 Answer:

Do you install the iReport?

if yes,you can see the property "print when expression"  in the  property panel.'ve got 2 text fields fieldA and fileldB.If you want to display the A only if the fieldB is not empty.

The print when expression in the Text A could be :F{filedB}!=null &&!"".equals(F{fieldB})




65644341's picture
Joined: Nov 20 2014 - 12:28am
Last seen: 8 years 9 months ago

thanks bro. it work.

kesabaranbravo - 8 years 10 months ago