gabrielmatosdesouza Posted February 27, 2015 Share Posted February 27, 2015 Hi Guys! I have a Crosstable element on my report and no detail band whatsoever.Now i need to have a num_line on each element of my crosstable, but they are in a group like this: I need to put a count variable in the beginning of each of those rows, but a simply cant with SQL, so i'm trying with ireport but i can't do it do.I get really close when i created a variable called counter with those properties:Name : countVariable Class: IntegerCalculation: Distinct CountReset Type: NoneIncrement type: ColumnVariable Expression: $F{cod_aluno} If i add the datail band and put the count variable into, i can use that variable in my crosstable normally.If i hide the datail band the variable value inside crosstable keep showing '1' instead of 1,2,3,4,5.... Guys i nearly trying anything i could, done much research but had no success at all.Obs.: I tried to just make a field on SQL but my postgres version is 8.2, so i don't have functions like row_num(), generate_series, etc. Please help. Thanks in advance. Link to comment Share on other sites More sharing options...
gabrielmatosdesouza Posted February 27, 2015 Author Share Posted February 27, 2015 I finally figured that out!! You just need to use a variable called $V{ROW_COUNT} and thats done :D Thanks all anyways. Link to comment Share on other sites More sharing options...
Solution gabrielmatosdesouza Posted February 27, 2015 Author Solution Share Posted February 27, 2015 I finally figured that out!! You just need to use a variable called $V{ROW_COUNT} and thats done :D Thanks all anyways. 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