Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Other Open Source Projects and the fly likes jasperreport ireport textfield expression Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply locked New topic

jasperreport ireport textfield expression

Kristof Camelbeke
Ranch Hand

Joined: Nov 28, 2001
Posts: 97
Hello I wondered if it was possible to use expressions like hiding a Static Textfield when another textfield has a null value.
I have tried to accomplish this using Ireport print on expression but with no result.
The corresponding tag in Jasperreports is <printWhenExpression> but I have not seen any examples on sourceforge

Does anybody have an example or know if this is possible ?

Thanks for any input !

Kristof Camelbeke
Ranch Hand

Joined: Nov 28, 2001
Posts: 97
Great I have just found out how so here it is :
new Boolean($F{FIELDNAME}!=null)
If the mentionned field is null then the static field will not be printed
Anandh K.M

Joined: Aug 20, 2008
Posts: 2
i want to know what is the syntax for the assignment operation
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441


This is a four year old thread. Let's continue this discussion in your other thread.

[My Blog] [JavaRanch Journal]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: jasperreport ireport textfield expression
jQuery in Action, 3rd edition