Jump to content
We've recently updated our Privacy Statement, available here ×

How to use a general variable on a crosstab?


gabrielmatosdesouza
Go to solution Solved by gabrielmatosdesouza,

Recommended Posts

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: 

 teste.jpg.a4d0a14635c56ece1f8f922841eb95c2.jpg

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 : count

Variable Class: Integer

Calculation: Distinct Count

Reset Type: None

Increment type: Column

Variable 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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...