pnvswamy Posted November 14, 2008 Share Posted November 14, 2008 I am using Jasper reports 3.0.1.Upto now it was fine.I want to display the field value as a String of 'none' not blankwhen that field value is null.I dont know how to make a condition for that field.Please help me. Link to comment Share on other sites More sharing options...
Teodor Danciu Posted November 14, 2008 Share Posted November 14, 2008 Hi,You can test for null values in the text field expression itself:<textFieldExpression>$F{MyField} == null ? "none" : $F{MyField}</textFieldExpression> I hope this helps.Teodor Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now