Jump to content

how do i supress band in ireport?!


parvanehbabapour

Recommended Posts

hi
i 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

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...