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.

Script is stuck in Pause mode

Featured Replies

I'm trying to script a Find. Nothing elaborate - you click a button labeled "Find" and it runs a script which goes to a layout, enters Find mode with Pause, and performs the Find when you hit <Return>. Error capture is on, and if there is an error I put up a dialog and then (recursively) perform this script. The layout for entering find criteria has a "Cancel" button which, if pressed, runs a script that deletes the request, does a Show All, and goes to the default layout.

When I run the Cancel script, I return to the default layout, but the Status Area still shows Script: Continue / Cancel.

What is strange is that I have a nearly identical procedure in another database that works correctly (i.e. when you click cancel, you return to the default layout *without* Script: Continue / Cancel. Whatever difference there is isn't obvious to me looking at the scripts, but I've attached them.

Thank you, and I'll gladly post any additional details that may be relevant.

Chap

Findbug.txt

Try this Chap:

Add an Exit Script step after your recursive call to Perform Script [ Subscripts, "Find" ]

You don't need to Delete the requests before Show All Records in your Cancel script, but the button for that script (and those other buttons) should be set to Halt Script (instead of Pause.)

  • Author

I'll be...! That was the difference - one Cancel button was set to Halt script, and the other was set to Pause script. Time to learn what *that* does.

Thanks kindly.

Chap

For reference,

Pause temporarily pauses the currently-running script, and resumes it after the interrupting script has finished.

Exit aborts the currently-running script but returns control to any scripts that may have called it.

Halt aborts all scripts.

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.