Jump to content

Increment list when group reset


psayles

Recommended Posts

 Hello, 

I'm having a problem trying to get the next record in a parameter list when my group resets.  I'm passing a list of dates from my java application which I need to apply to the group field when the "type" changes from a database call.

LIST = (1/01/2010, 2/01/2010)

DATABASE = 1, john, type 1

                          2, jake, type 1

                          3, dave, type 2

example: 

1/01/2010   

  john, type 1    

  jake, type 1

2/01/2010

  dave, type 2

  carol, type 2 

 

 

$P(reportdate) --> java.util.list

$V(listrow)

class: java.util.list

Calculation: count 

Reset type: Group

Reset group: grouptype

Initial Value Expression: new Integer(0)

 

Group: grouptype 

---> Field: type

Group Field: $P{reportdate}.get($V{listrow}.intValue())

 

Can anyone help me understand what I'm doing wrong?  Right now, I get the first date for all records.  I'm not sure how to increment to the next list date when the group changes.

 

Thanks.. 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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