Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Problems with Total in Footer


This topic is 5450 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

I'm trying to do something like OP in http://www.fmforums.com/forum/showtopic.php?tid/179306/

What I'm trying to do is have a footer that appears at the end of every page. I want the footer to contain a "Comments" field as well Total$Amount.

I want the "Comment" field to appear on every page but I want the Total$Amount ONLY to appear on the last page.

Like the previous post, I'm trying to make a container with a white image and another as transparent. On a 3 page order, for example, the white image is over "EX_sLineTotal" on pages 1 and 2. However, on page 3, it is transparent and the "EX_sLineTotal" is visible.

I'm having NO success. Any help?

Please see attached picture.

http://img710.imageshack.us/img710/2231/picture3ul.png

Edited by Guest
Spelling
Posted

Don't use an overlay image. Just use conditional formatting. Your script would set $$last_page to the page number of the last page. Conditional format the text to use this. So you could set default text for the field to white, then use case( get( PageNumber ) = $$last_page; 1) and turn it black.

Posted (edited)

Wow... so much easier. Didn't even think of that

Thanks a ton. Let me give it a shot and see if I can get it to work.

Edited by Guest
Posted (edited)

I can't quite seem to get it to work.

Can you be a little bit more specific?

I'm still learning and need someone to hold my hand. Haha

I defaulted the text to white (as you said) and set the Conditional Formating to black using:

case( get( PageNumber ) = $$last_page; 1

What am I doing wrong?

Edited by Guest
Posted

Did you set $$lastpage? You'll need to Enter Preview, Go to Page Last, set $$lastpage to get (pagenumber).

Posted (edited)

I took the suggestion of using $$last_page and conditional formatting to Case ( Get (Pagenumber) = $$last_page; 1)

I got it to work... sort of...

I set the default text to white and the conditional formatting to black but for some reason the Black Formatting is appearing on the FIRST page and not the subsequent pages (or last page as intended).

I double checked my script and I do infact have "Go to Page/Record" (Last) and not (First)

I can't figure it out

Also, Just to make sure $$last_page was getting set to Page "X", I included the field in the layout. The field is getting correctly. For example, in a 2 page report, $$last_page is getting set to "2".

The WEIRD thing is, even on the printable report, the $$last_page field will only display on page 1... and this field has NO CONDITIONAL FORMATTING on it. Any explanation for that?

EDIT:

RAAAAGE... As I said earlier I'm a newbie and I need someone to hold my hand. I made the stupid mistake of not having $$last_page as a Global Field (reason for not appearing on subsequent pages). I think I may have figured it out

Edited by Guest
Posted

$$last_page is not a field of any type, it is a global variable. To set it, you must be in Preview Mode, go to page Last, then set it.

This topic is 5450 days old. Please don't post here. Open a new topic instead.

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

Important Information

By using this site, you agree to our Terms of Use.