hensa Posted October 6, 2007 Share Posted October 6, 2007 hi every oneHow can I create a recordnumber using Variables..sample Item Field1 Field2 1 XXX XXX 2 XXX XXX 3 XXX XXX 4 XXX XXXPost edited by: hensa, at: 2007/10/05 19:39 Link to comment Share on other sites More sharing options...
JayLink Posted October 6, 2007 Share Posted October 6, 2007 Just create a variable for "Item" by going to "View" -> Variables -> [ New ]. Set the Variable Class Type to java.lang.Integer, set the Calculation Type to "Count", and set the Variable Expression to: new Integer(0) Then, make a field for your variable on the report. It will then auto-increment like you want.Post edited by: JayLink, at: 2007/10/05 21:34 Link to comment Share on other sites More sharing options...
hensa Posted October 6, 2007 Author Share Posted October 6, 2007 thanks for reply, but, it only shows "1" on all the records. Group FielXX Item Field1 Field2 1 XXX XXX 1 XXX XXX 1 XXX XXX 1 XXX XXXGroup FielXX Item Field1 Field2 1 XXX XXX 1 XXX XXX 1 XXX XXX 1 XXX XXX any suggestion, why happens that? Link to comment Share on other sites More sharing options...
hensa Posted October 6, 2007 Author Share Posted October 6, 2007 already I solved my problem just I create variable called ItemV Variable Class Type java.util.Integer; Calculation TypeSum Reset TypeGroup Reset GroupAnyGroup Variable Expresionnew Integer(1) Initial Value Expressionnew Integer(1) thanks for helpPost edited by: hensa, at: 2007/10/06 08:07 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