Jump 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.

Can a Triggered Script RESUME a previously Paused Script?

Featured Replies

Context: A Button definition can invoke a Script AND specify how a previously Paused Script will be handled (Pause, RESUME, Halt or Exit) following conclusion of the Script invoked by the button.

My Question: Can a Script Trigger somehow similarly RESUME a Paused Script upon completion of the Triggered Script? If so, how?

P.S. I am in FMA 10. Under Custom Menus I see that I can create a menu to execute a "Resume Script," but I have not found a useful (or attractive) way to apply this to accomplishing my goal.

Thank you in advance!

If you can not get a definitive answer to your question you may want to think about using a global variable.

Depending on how that variable is set the script does what it needs to do. So you can set the variable say $$myVar to something once the button is clicked, and just before you exit that script and recall the previous script that can then examine the variable and do whatever you want.

If(Exact($$myVar,0)

Do something here

Else

Do something here

Endif

Exit

Can a Script Trigger somehow similarly RESUME a Paused Script upon completion of the Triggered Script? If so, how?

Not directly, since the trigger evokes a new script stacking up underneath, a requirement would be able to flip the execution, via a command.

Until this might or might not arrive in the tool, must another scripting style be used, such as chopping the script up in smaller parts, exploiting this functions behaviour:

http://fmhelp.filemaker.com/fmphelp_10/en/html/scripts_ref1.36.4.html

--sd

  • Author

Thank you for this suggestion, but splitting the script is exactly what I was hoping to avoid as that would require turning local variables into globals (or some equivalent) that would reduce the portability of my script.

Create an account or sign in to comment

Important Information

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

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.