Jake Sterling Posted June 13, 2005 Posted June 13, 2005 When running a script that goes into Preview mode and pauses, Filemaker offers two options in the status area: to Continue or Cancel. Is there any way to capture the Cancel in the same way as you might with the Cancel in a Message choice and Status(CurrentMessageChoice) function? What I would like to do is have the script take the user back to the original layout if the Cancel button is pressed rather than dumping him or her on the layout in question. Hopefully, the user won't even think of using the cancel button but.... I would guess, unfortunately, that the Cancel button just runs the Halt Script step, and there is no way of getting around that, but maybe not? Jake Sterling
-Queue- Posted June 13, 2005 Posted June 13, 2005 If you add an Allow User Abort [Off] step to the beginning of your script, the Cancel button will not exist. You can then incorporate your own Cancel dialog.
DykstrL Posted June 15, 2005 Posted June 15, 2005 Assuming that you are putting the user into Preview mode prior to actually printing it, here is a quick script: Allow User Abort [off] Set Error Capture [on] Go to Layout [MyPrintLayout] Print Setup [no dialog] Enter Preview mode [pause]{could be indefinite or a set amount of time} Print [] {with dialog} Enter Browse mode Go to Layout [original] If the user clicks the cancel button on the print dialog box, they will still be taken back to the original layout. Whatever the user does, they are taken back to the original layout.
Recommended Posts
This topic is 7103 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now