hvm Posted June 3, 2010 Share Posted June 3, 2010 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 More sharing options...
lucianc Posted June 15, 2010 Share Posted June 15, 2010 You will have to set evaluationTime="Group" and evaluationGroup="..group name.." for the text field in which you display the variable.Regards,Lucian Link to comment Share on other sites More sharing options...
hvm Posted June 16, 2010 Author Share Posted June 16, 2010 ThanksHanno 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