psayles Posted December 5, 2010 Share Posted December 5, 2010 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 2example: 1/01/2010 john, type 1 jake, type 12/01/2010 dave, type 2 carol, type 2 $P(reportdate) --> java.util.list$V(listrow)class: java.util.listCalculation: count Reset type: GroupReset group: grouptypeInitial Value Expression: new Integer(0) Group: grouptype ---> Field: typeGroup 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now