Jump to content

Script keeps looping when file closes


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

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This topic is 6483 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.