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.

Get Pause State?

Featured Replies

I am looking to pass the Pause state as a script parameter.

Any ideas on how to tell if the current window is paused?

That doesn't make any sense: when a script is paused, it's not going to continue on to the next script step until it's un-paused. So by definition such a function would always return a zero. And a paused script affects the whole application; while one window is paused, nothing can happen in any other windows.

What exactly are you trying to do?

  • Author

Here's the situation...In a script, I bring up a new window and pause it. On the layout in this window there are buttons that perform scripts and Resume the current script.

Under normal circumstances, the close window("X") button in the upper right of the window is inactive when a script is paused so the user cannot close the window by clicking the "X". However, with FileMaker 8 you can use the Custom Menus function to run a script when a window is closed by setting the Action property in the Menu Item Properties of the "Close" menu item in the File Menu to Perform Script. With this in place, the "X" is no longer inactive when a script is paused. Instead, the script associated with the Close menu item runs.

I have a "Close_Window" script that runs whenever someone closes a window. This script checks the current context and either closes the window or doesn't close the window.

I would like to pass, as a parameter, the pause state of the window to the "Close_Window" script so that I can put a condition in the script that doesn't close the window if the script running in the window is paused.

You could set the status before you pause: use a global variable, or name the window something distinctive and test for that. You could also experiment with Get(ScriptName) but I haven't tested it.

  • Author

Thanks Fitch. I am going to mess around with setting a global variable prior to pausing.

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.