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 keeps looping when file closes

Featured Replies

I created a script that executes when the file closes. It is assigned in the File Options menu item. These script steps cause the script itself to repeat

(Close Window)..if it's the last window open

(Exit Application)

(Close File)

However, if I try (Exit Script) or (Halt Script)the file won't close.

QUESTION: What script steps can close the file without re-triggering the script that executes when the file is closing?

I've attached the script that executes when the file is closing [color:green]g_LogOff and the script it calls, [color:orange]g_BackupCurrentFile.[/b]

1147816147-g_LogOff.txt

1147816157-g_BackupCurrentFile.txt

There is no need to trap whether the window is the last one open: the shutdown script only runs if it's the last window open (for that file).

  • Author

I didn't try to trap the last window...i was just noting what will trigger the file closing script.

  • 1 month later...

With the Close file script specified in the File options, I don't think there is a way to halt that once it is fired. You could try a quit button that runs that script instead of letting filemaker trigger it.

I don't know if there is a way to keep a user from using the file menu to close the fiel though.

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.