Jump to content

printing variable in group header


hvm

Recommended Posts

 Hi,

We have a question about grouping a report on a jasperReport Variable. 
 
The reproduction path:
I have a Variable with name "tstVar". The expression of that variable is just the value of one of the fields of the report. For example:
variableExpression     $F{profielNaam}
 
Next I made a report group; the grouping expression is the just made variable:
groupExpression $V{tstVar}
 
In the group header I print the variable field:  $V{tstVar}
 
The result is that the group header always prints the value of the previous record. In the first group is is "null".
At this moment we use JasperReports version 3.1. 
 
Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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...