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.

Continuous page numbers between reports

Featured Replies

I have a time and billing application where the invoice is made up of several reports (an invoice, time exhibit, cost exhibit, etc.). I would like to number the pages consecutively from one page to another even though the pages are not from the same layout but from the several layouts that make up the invoice.

Can each layout contain more than one page ?

IOW: Do a single invoice have the same number of pages as the number of the layouts ?

  • Author

Typically an invoice contains one cover letter page, a time exhibit that contains several pages, a cost exhibit that can contain one or more pages and a time allocation exhibit that is typically only one page. Hope this helps.

Do you have four tables ( cover letter, time exhibit, cost exhibit, time allocation exhibit ), all related to the invoice table by its ID ?

  • Author

Yes.

So you'll need to count all those pages in the script that do the print of the invoice in a way like this:

( you are in the Invoice Table )

Go to related record [ Show only related records ; from table "cover letter " ; with layout " cover letter" ]

[color:red]Go to record [ Last ]

Enter Preview Mode

[color:green]Go to record [ Last ]

Set Variable [ $pages; Value: $pages + Get( PageNumber ) ]

Enter Browse Mode

Go to related record [ Show only related records ; from table "time exhibit" ; with layout "time exhibit"]

[color:red]Go to record [ Last ]

Enter Preview Mode

[color:green]Go to record [ Last ]

Set Variable [ $pages; Value: $pages + Get( PageNumber ) ]

Enter Browse Mode

... and so on with those other layouts.

At the end $pages will contain the total number of pages that you have to print.

You 'll put that $variable into a global field

Edited by Guest
wrog order of the steps

It needs to be:

...

Enter Preview Mode

Go to Record/Request/Page [ Last ]

Set Variable [ $pages; Value: $pages + Get( PageNumber ) ]

...

You can also set the global field directly, without going through the variable.

Edited by Guest

yes, that is the right way to count the pages.

  • Author

Thanks to both of you for your help.

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.