Jump to content
Changes to the Jaspersoft community edition download ×

printWhen detail row is last record in group


Recommended Posts

By: Carey Gibson - trillian11

printWhen detail row is last record in group

2006-07-05 16:37

Hey all,

Apologies if I missed a question like this -- searched to no avail.

 

I want to print something in my Detail band only when that detail record is the last record in that group. I've tried creating a 'row count' variable, but it's never different from $V{groupName_count}.

 

Is there any way to get a handle on how many records there are in a group from the detail band?

 

Thanks!

Carey

 

 

By: Lucian Chirita - lucianc

RE: printWhen detail row is last record in gr

2006-07-06 05:03

It's not possible to use the printWhen expression for this. This expression gets evaluated when the detail band is rendered, and at this time there is no way to know how many records the group is going to contain (the group breaks are determined a posteriori).

 

Hence, there is no way to remove the text field from all but the last record in the group. If you can settle for empty texts, you can find a solution here

http://sourceforge.net/forum/message.php?msg_id=3540986

 

HTH,

Lucian

Link to comment
Share on other sites

  • 7 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

hello Lucian

 

i would like to print a field only on the last line of a record group, but reading your response in this forum,i understand that it is not possible using print when expression.

Unfortunatly, i can not read the link (authorization failed) could you please copy the description here.

 

regards

 

Françoise

Link to comment
Share on other sites

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