File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply locked New topic
Author

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
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
Greenhorn

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

Joined: Jul 20, 2005
Posts: 9317
    
109

Anandh,

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: http://aspose.com/file-tools
 
subject: jasperreport ireport textfield expression
 
Similar Threads
JasperReports + StoredProcedures
Please help with Jasper and Ireport
Replace Special Character with CR and LF
JasperReport Stertch with overflow problem
Which jrxml file can be called from Java