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.

Featured Replies

Hello,

 

I have one layout (1 record) when i'll print i'll choose the amount of papers i want to print.

is it possible to add page numbers on my labels.

 

I've already tried get (pageNumber) but it shows on all labels 1.

 

 

You mean you're printing multiple copies of a one-pager, and you want to print the number of the copy on the page?

  • Author

yes thats right.

You could place a global variable ($$) on the layout, then print 1 copy within a loop (number of desired copies), each time changing the $$ with the current loop counter.

FileMaker calls this a Merge Variable, analogous to a Merge Field, and it works just the same (as of FileMaker 11+).

 

Note that this may not be a practical/feasible solution, depending on the number of desired copies. 

 

That being said, a script would look like so:

Set Variable ( $numOfCopies ; 10 ] // you can hard-code this, or read it from a global field before starting the print script
  # if you do the latter – like in Set Variable [ $numOfCopies ; myTable::myNumOfCopies ] - check that there is a value, or you've got yourself an infinite loop
  # e.g. If [ not $numOfCopies ], Exit Script [], End If []
  # Go to your print layout, make necessary set-ups etc.
Loop
  Set Variable ( $i ; $i + 1 ] // that's your loop counter
  Set Variable ( $$copy ; "Copy #" & $i ) // the global variable for your layout
  Print [ No dialog ] // set print dialog to print 1 copy only
  Exit Loop if [ $i = $numOfCopies ]
End Loop
Set Variable ( $$copy ; "" ) // clean-up; you only need the $$ while printing

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.