Aussie John Posted November 10, 2005 Posted November 10, 2005 If I press "cancel" after an "enter preview mode (with pause)" script step, the script stops. Is there any way to get it to perform an if statement. ( I tried : error capture/set global to last error/if global=1 … :but to no effect) thanks for any help
T-Square Posted November 10, 2005 Posted November 10, 2005 John, AFAIK, no--but I'm sure someone will prove me wrong. My only workaround is to split my scripts, with steps leading up to the preview in one script, and everything after it in a second script. David
comment Posted November 10, 2005 Posted November 10, 2005 I think the best way is to make this the first step in your script: Allow User Abort [Off] Then there will be no Cancel button. If you want, give the user a choice to skip printing in a custom dialog - after continuing.
-Queue- Posted November 10, 2005 Posted November 10, 2005 If you have Allow User Abort set to Off at the beginning of your script, a cancel button is never available. And even if Cancel is pressed on a Print dialog, the script will continue as usual.
Rushhour Posted November 10, 2005 Posted November 10, 2005 Hi, i got a problem with Allow User Abort [Off]. I have done a pop up layout, when i click no it will stop the script and close the pop up and remain to my main layout. But i cannot go back to go back to layout mode anymore or even closing the file. I need to off the whole filemaker program and reopen it again. i got no choice to use [On] then as i got no problem with it at all. what actually happened..? can someone help me with it... thanks a lot...
T-Square Posted November 10, 2005 Posted November 10, 2005 Is it possible that you have a Pause in your script that is not showing because the status bar is hidden? I've seen that before.
-Queue- Posted November 11, 2005 Posted November 11, 2005 Good point! If you press Enter on the number keypad or Ctrl-Return, does the script continue?
Rushhour Posted November 11, 2005 Posted November 11, 2005 Hi, the last coding for the pop up is pause/resume. and my icon 'no' is close script. If i choose [on], everything will went fine... Sorry i will try your way on mon when im back in the office, then will update you guys again.. Thanks yeah..
Rushhour Posted November 14, 2005 Posted November 14, 2005 Hi yeah thanks, if i used [Off] i not able to access to layout mode but really when i enter 'enter' i can choose layout mode already. But why? Why does it works this way? anyway i can juse choose layout mode if i wish to and not necessary to enter 'enter'?? thanks a lot..
LaRetta Posted November 14, 2005 Posted November 14, 2005 You've been asked to list your script. Until we see it, we can't tell how to fix it because we don't know where it's broken. Can you take a moment to list your script steps? LaRetta
Rushhour Posted November 14, 2005 Posted November 14, 2005 Hi, I jus reliase I can actually attached up file =) This is my 6th day learning to use filemaker, therefore number of doubts, really thanks a lot Kelvin Overseas_Travel_Report_FMP.zip
-Queue- Posted November 14, 2005 Posted November 14, 2005 Your Yes and No buttons are set to Pause the currently running script, which is already paused. When you press Enter, the original script resumes. Change the buttons to Halt the currently running script (double-click on them in Layout Mode and see the Options in the upper-right corner).
Rushhour Posted November 15, 2005 Posted November 15, 2005 Hi Anomality, yeah it solved the problem. Thanks a lot =D
Recommended Posts
This topic is 6951 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