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.

Print Dialog Cancelled

Featured Replies

I have chosen to print records from a separate file and offer the Print Setup (Windows) to the user - to offer them a choice of printer. If the user cancels the Print Setup Dialog how can I get him back to his original layout?

Hope someone can help.

Alow User Abort[off]

Set Error Capture[on]

Print[]

Go to layout[original layout]

  • Author

Thanks for your reply.

This stops the Error Dialog (Continue/Cancel) but when I choose to cancel but I still end up with a printed copy because of the Print script step (presumably).

That's what I'm trying to avoid so if the user selects the cancel option the script is "stopped" and is then returned to their original layout.

User cancelled action is Error 1. So...

Alow User Abort[off]

Set Error Capture[on]

Print[]

Set Field [ gError, Status( CurrentError ) ]

Set Error Capture[off]

If [ gError = 0 ]

# Print was successful.

<stuff to do when print happens>

Else

If [ gError = 1 ]

# User cancelled action.

Go to layout[original layout]

Else

# Some other error has occurred.

End If

End If

I prefer to put the error code into a global number field (gError) so it can be used later (the CurrentError variable gets reset after each script step processes, even comments).

Now i tried my suggestion in my PC.If understood you truly - it does what you want.See attachment. Press print button, then choose cancel.

print.zip

  • Author

Thank you Vaughan. This is perfect and I am extremely grateful.

Alow User Abort[off]

Set Error Capture[on]

Print[]

Go to layout[original layout]

...

Now i tried my suggestion in my PC. If I understood you truly - it does what you want. See attachment. Press print button, then choose cancel.

Your method above worked perfectly for me. In response to the earlier comment about this method, it does not print after hitting "Cancel" because that "Cancel" button is for printing. (Cancel for the script is suppressed by the steps above.) The script then continues and takes the user back to the original layout. This was short and sweet which is what I needed in my client's office at 2 am. Thanks.

The other solution looks great for situations that are more complex than mine.

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.