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

Scripting to allow for User to cancel printing

Featured Replies

Hi, I know my basic scripts but am far from being able to add all the permutations and combinations when users don't do exactly as you expect them to... but am super keen to learn!

Let me start here. I have a script that sets the print setup, enters preview mode and then takes the user to the print dialogue box. If the users presses 'cancel', filemaker shows 'Print has been cancelled. Do you wish to continue with the script'. I Users might be totally flustered with this dialogue. What do I need to add to my script in order to take them back to browse mode?

Thanks so much,

Is it necessary for users to have access to the print dialog box?

Could you not determine the print setup up in an earlier part of your script so that when the user has previewed what the report will look like they then have the option to print or to cancel?

Something along the lines of:

Start your script with Allow user abort [off] and Set error capture [on]

Gather the data for the report according to the criteria you set; set up report page numbers, etc

Go to the print layout

Enter preview mode [pause]

Show custom dialog - Print or cancel

If [get last message choice] = 1

Print

End if

Go to original layout

Enter browse mode

if you set error capture on, right after the print command that brings up the dialog you can do the following:

if [ Get ( LastError ) = 1 ]

Go to Layout [ original layout ]

Enter Browse Mode [ ]

Exit Script [ ]

End If

  • Author

Thanks a million. Extremely helpful. Its always easy when you know how!

have a great day!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.