kriegerd Posted March 13, 2007 Share Posted March 13, 2007 Hello everyone, I want to create a variable that counts every group in a report. I have the following variable declaration: Code:<variable name="busRouteNumber" class="java.lang.Integer" resetType="Group" incrementType="Group" incrementGroup="busRouteGroup" resetGroup="busRouteGroup"> <variableExpression>new Integer($V{busRouteNumber}.intValue() + 1)</variableExpression> <initialValueExpression>new Integer(0)</initialValueExpression> </variable> It seems that the variable is not being calculated for every change in the group, but rather for every record in the report :S. Could anyone tell me what I'm doing wrong? Thanx in advance Link to comment Share on other sites More sharing options...
jpt Posted March 13, 2007 Share Posted March 13, 2007 Maybe this topic can have the soluce : GroupCount JP 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