2005 IR Help Posted September 2, 2006 Posted September 2, 2006 By: aletasso - aletasso groups 2004-10-27 06:57 How can i do to count the number of breaks in a group and display it in my report? Please help me By: aletasso - aletasso RE: groups 2004-10-27 08:38 Sorry giulio you are so nice to ansver to my problems... Yet when i declare the variable Var1 end then i write new Integer(Var1.intValue()+1) Jasper writes cannot resove symbol Var1... please help By: Giulio Toffoli - gt78 RE: groups 2004-10-27 10:30 Replace Var1 with $V{Var1} and Var2 with $V{Var2} Giulio By: Giulio Toffoli - gt78 RE: groups 2004-10-27 07:46 Use two variable. the first variable is a number reset to 0 at every new break (or start) of the group XYZ and incremented by one at every record. Var1 Type: Integer Expression: new Integer(Var1.intValue()+1) Initvalue: new integer(0) ResetType: Group (XYZ) The second incremets at every time Var1 is 0 Var2 Type: Integer Expression: new Integer(Var1.intValue()+ ((Var1.intValue() == 0 ) ? 1 : 0)) Initvalue: new integer(0) ResetType: Report (Var2 + 1) is your value. Giulio By: HSL - lhshyong RE: groups 2005-08-11 23:43 hi, gt78 , i am new here. i am using ireport 0.50 and follow what u teach here but mine not work coz the Var2 execute before the Var1, the Var2 assign to 0 before the Var1 reset.. any comment here.?
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