Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 8076 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a script that has a pause built in so that it waits until a user makes a selection from a pop-up list:

Allow User Abort [Off]

Set Error Capture [On]

Go to Field ["Letter"]

Select All

Loop

Pause/Resume Script [0:00:01"]

Exit Loop If ["Status(CurrentFieldName)<>"Alphabet" "]

End Loop

If["Status(CurrentError)=400"]

ShowMessage ["You did not enter any find criteria; all records will be displayed."]

Go to Layout [original layout]

Else

Perform Script [sub-scripts, "find it"]

End If

Basically it is a button, select it and a pop-up list comes up with search choices. The script pauses until one of the letters is selected, then when one is selected a sub-script runs that finds all criteria that matches the choice. If while the pop-up list is up and the user does not select anything and clicks else where in the record then the script aborts.

Here is the problem: This all works great, the button is clicked, the pop-up list comes up, waits for a selection, and if the user does not make a selection in the pop-up and clicks else where in the record, the script ends. But if when the user clicks else where in the record and that else where happens to be another button for another script, then that other script will run, then the record goes back into pause mode from the first script again.

Is there something I can include after the Loop section of my script above that would indicate if another script is executed then the loop/pause would end?

Posted

The simplest way to deal with this is via the definitions of the buttons on your layouts. If you select a button and go into the Specify Button... dialog, you will be able to set them to:

Halt

Exit

Resume

Pause

the currently running script.

It sounds like you've got all your buttons set to pause (which is the default setting - but is in fact one of the least appropriate in a lot of situations!). Change them to Exit or Halt and your problem will be solved.

This topic is 8076 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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