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

hide column if values null


sledgeas
Go to solution Solved by kkumlien,

Recommended Posts

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

If the columns are all the same datatype and format, this is what I would do.

First, you will need a Scriptlet class.

Second, create report variables for every column. Let's say x1 .. xn. (It might be possible to use an array or Vector here, I'm just sketching out an idea.)

Third, bind the report fields to the variables instead of the database fields.

Fourth, use the scriptlet to assign the variables as each row is evaluated: x1 gets first non-null database field, x2 gets second, etc. You can do this in a clean loop if you use arrays or vectors in a sensible way.

Link to comment
Share on other sites

  • 1 year later...
  • 7 years later...

I find it truly incredible that questions like this get no answer even after 10 years, if a reporting tool is designed to create reports how it can possibly be trusted when deadlines are tight, and the work needs to be delivered.



 



If this functionality is not easily accessible “by default” then there is no point in deploying or even wasting time in training people in the use of Jasper Reports.



 



Then there is the support aspect, every problem I have encountered and there are many trust me, I have had to solve with trial and error. It looks like many others here have simply left this forum and started using other tools because of the lack of creditability of Jasper Studio and reports.



 



 



 


Link to comment
Share on other sites

  • 4 weeks later...

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