aspose file tools
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

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
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: 10403


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

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: jasperreport ireport textfield expression