Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Printing a report with total number of pages

Featured Replies

Anyone know how to put the total number of pages in a footer on a report so that it reads:

Page X of Y

(ie. how do you put/calculate "Y"?)

Thanks

FileMaker Version: 5

Platform: Mac OS X Panther

I think I saw a thread on this a week or two ago.

OK... here you go.

First you'll need a global number field to temporarily store the number of pages. This field will be the Y part of the "Page X of Y" merge string. Example: Page ## of <<gPageCount>> where gPageCount is global field name.

Next perform the find, sort and layout script steps necessary for your report.

Now enter Preview Mode and go to the Last page.

And finally set the "gPageCount" field the the Current Page Number.

The script will look something like this depending upon your actual choice and field name, find and sort settings and layout name.

-----------------------------------------------

Perform Find [Restore find requests, Replace Found Set]

Sort [Restore sort order, No dialog]

Go to Layout [Report]

Enter Preview Mode[]

Go to Record/Request/Page [Last]

Set Field [gPageCount, Status(CurrentPageNumber)]

Let me know how this works out... you should do fine.

  • Author

Works awesome - Thanks!!

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.