dbTalk Databases Forums  

Recoverery from canceled script?

comp.databases.filemaker comp.databases.filemaker


Discuss Recoverery from canceled script? in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
NeoLuddite
 
Posts: n/a

Default Recoverery from canceled script? - 08-04-2003 , 08:39 AM






I can't seem to figure this one out.

I have a script that prints out a statement, but just before it prints
it displays the page to be printed in preview mode and pauses. Then the
user (me) either hits continue to print or cancel to abort the script.

The problem is that canceling leaves me in browse mode on the print
layout. I'd like to go back to the page that called the script, but I
can't see how to "capture" the cancel and continue with the script.
There doesn't seem to be a an error code for this.

In other words I'd like to be able to abort the printing and then have
the script do something else like take me back to another layout instead
of just exiting. I suppose I could put up a message dialog asking if I'd
like to print or cancel but that's a bit awkward plus I'm going to print
95% of the time.

FMP 4.02 on Mac.

Thanks.

--
Real Address-> neoluddite0comcast.net <- replace 0 with @
Bill Gates couldn't innovate his way out of a paper bag.

Reply With Quote
  #2  
Old   
NeoLuddite
 
Posts: n/a

Default Re: Recoverery from canceled script? - 08-04-2003 , 03:59 PM






In article <wbvXa.3764$5e.221772 (AT) twister (DOT) socal.rr.com>,
"Terry" <tkunz (AT) socal (DOT) rr.com> wrote:

Quote:
Add a "Set Error Capture" script step just before the "Print" step then
check for an error status of 1 (user cancel action) right after the print
step with an if statement then have the script do whatever you want it to
do.
See this is what happens when you rush. First I completely missed the
"user cancel action" in FMP help and then I misspell "Recovery" in the
subject line. It's been that kind of day... make that week.

Anyway, thanks.

--
Real Address-> neoluddite0comcast.net <- replace 0 with @
Bill Gates couldn't innovate his way out of a paper bag.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.