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

Alternate colors in crosstabs


monesseldeur

Recommended Posts

Hi all,

 

this is my first post here.

 

I've been working with iReports and Jasperreports for a while now. Create some nice dynamic reports using java code.

 

But I'm stuck with one problem I obviously can't solve alone: I want to use alternate colors for the rows in a crosstab. I have found this solution on the net:

As you noticed, a crosstab's expression context is different from the report's expression context. The REPORT_COUNT variable does not exist in a crosstab's scope. We are going to create instead crosstab variables holding the row and column indexes.

1. Until then, you can use a crosstab parameter as a row counter. The parameter would be a mutable integer and

2. would get incremented in an expression inside the row header.

3. The row counter value would be used then inside the crosstab cells.

I figured out step 1. But can anyone help me with step 2 and 3.

 

Thanks a lot.



Post Edited by Debrabandere Francis at 11/09/08 10:05
Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...
  • 2 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...