parvanehbabapour Posted May 14, 2014 Share Posted May 14, 2014 hii have a report,& in it i have some bands same group1 that in it i need to supress the group band,because the fields in it return null values.i use the code that u wrote,but it dosn't work($F{field_name} == null ? new Boolean(false) : new Boolean(true) )what should i use instead of "new Boolean(true)"?! Link to comment Share on other sites More sharing options...
atmaling Posted May 14, 2014 Share Posted May 14, 2014 Select the band which you want to hide, give the Print When Expression as "false". Link to comment Share on other sites More sharing options...
bifiterconlimon Posted May 14, 2014 Share Posted May 14, 2014 Simply go to the 'Report Inspector' section and click right on the band you need to suppress and then 'Delete band'. It's not deleted, only hidden in the final report template. Link to comment Share on other sites More sharing options...
Friendly User Posted May 14, 2014 Share Posted May 14, 2014 The code:($F{field_name} == null ? new Boolean(false) : new Boolean(true) )can be just shortened to $F{field_name}.equals(null). Make sure that your field field_name actually returns a proper java null value. It can return an empty string ("") which isn't the same thing as null. Link to comment Share on other sites More sharing options...
hozawa Posted May 19, 2014 Share Posted May 19, 2014 Is the language of your report set to "Java"? 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