Jump to content
JasperReports Library 7.0 is now available ×

Row group count multi-level


rdpascua

Recommended Posts

I'm trying to implement this multi-level row group count, I can't make it work.

 

1. 
    1.1
    1.2
    1.3
    1.4

2.  
    2.1
    2.2
    2.3
        2.3.1
        2.3.2

I tried creating a variable ${FIRST_LEVEL_COUNT}

Expression: new java.lang.Integer(1)
Value Class: java.lang.Integer
Initial Expression: new java.lang.Integer(0)
Increment Type [Group] FirstLevelGroup
Reset Type [Group] FirstLevelGroup

I created three of these for each groups I need.

on the textField I've added new java.lang.Integer($V{FIRST_LEVEL_COUNT}.intValue()+1) as expression

What's happening is:

1. 
    1.1
    2.2
    2.3
    2.4

2.  
    1.1
    2.2
    2.3

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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