create new variables and field expressions

Hi all you experts,

 

I would like to print some fields only on the last page of the report but without placing it into the last page footer. I tried to place a constraint in the options field "print when expression" but I am missing the variable expression for the last page.

The page number is $V{page_number} with the evalution time Now or Report but how do I fit the report evalution time into a newly created variable(and with which expression?)

I would like to print my expression if: current page number == last page number

 

Thanks for your help.

brommy's picture
1
Joined: Jan 25 2009 - 11:33pm
Last seen: 14 years 4 months ago

3 Answers:

brommy,

 

Would using the Summary band meet your needs in this case? It can be set to appear on its own page.

 

Regards,
Matt

mdahlman's picture
35090
Joined: Mar 13 2007 - 2:43am
Last seen: 8 years 6 months ago
I need to do the same thing. Did you ever find a solution? Summary bank will not work for me because I need it to be at the top of the last details page. Thanks, Ronnie
rfreitas's picture
Joined: Feb 12 2009 - 1:06pm
Last seen: 14 years 3 months ago

Figured it out.

Create a Variable - CURRENT_PAGE or whatever name, and set "Reset Type" to Page.  Leave everything else at the defaults.

Then Add your Text field or image to the layout, and put this in your Textfield Expression or Image Expression:

($V{CURRENT_PAGE}.equals($V{PAGE_NUMBER}) ? "The last  Page" : "Not last page"

But you have to set "Evaluation Time" to Auto on your textfield or image.

 

rfreitas's picture
Joined: Feb 12 2009 - 1:06pm
Last seen: 14 years 3 months ago
Feedback