wood burning stoves 2.0*
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: 9937


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

[My Blog] [JavaRanch Journal]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: jasperreport ireport textfield expression
Similar Threads
JasperReports + StoredProcedures
Replace Special Character with CR and LF
JasperReport Stertch with overflow problem
Which jrxml file can be called from Java
Please help with Jasper and Ireport