Jump to content
We've recently updated our Privacy Statement, available here ×

removing a field from the report


preetipratapyahoo.com

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Do you want to remove an item in a column of items or do you want to remove a whole row?

 

ie you have columns

 

a b c d e

 

and c is null so you end up with

 

a b d e

 

and would like to print in out as

 

a b d e

 

The only way to do this is to layer controls on top

of each other and control their creation with the "Print when expression".

Link to comment
Share on other sites

Ok it sounds like you don't want to show a blank row when C is null. To do this you need to set a value in the print when expression of your detail band.

 

1. Go to band properties

 

View -> Bands

 

2. Choose the detail band

 

3. In the Print When expression create an expression that evaluates to true when your row has a value. say your data source is the following SQL

 

select rowA from tableA

 

Your expression could be

 

new Boolean($F{rowA}.intValue()!=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...