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.

How to restart FileMakerPro automatically when it's get disconnected from the host.

Featured Replies

We've got CTI plug-in integrated into our FileMaker system.

When it gets a call from someone, it kicks filemaker script, passes caller's ID and shows Customer's Info. It's working perfectly.

The problem that we are facing now is that Filemker gets disconnected from the host sometimes.

Then it shows this error "Communication with the host was interrupted and could not be re-established. All affected windows will be closed."

Once this happens, it never work untill I restart FileMakerPro itself.

I tried to figure out to overwhelm this but in consequence had no idea:(

You cannot command or kick any script while FileMaker pro is showing error message.

This system is running on MacOS Lion.

Is there any good way to detect disconnection error and restart FileMakerPro?

Try running a network cable between the robot (client) computer and the switch nearest the server, and/or replacing all cables/switches in that path. Despite all the advice against it, I have never experienced problems running a robot on a server computer. You cannot trap this error within Filemaker. Obviously, addressing the root cause is preferred. Absent that, you can use Applescript to detect the error dialog, send a key to acknowledge it, and re-open the file and run a script, similar to what 'Okey Dokey Pro' used to do in the OS9 era, at least the acknowledge part. So you would activate the application & send a keystroke. I haven't used Applescripts for a couple years, presumably first, you'd test if client was disconnected, I'm assuming Filemaker fails to respond to Apple Events in that case and could be detected that way, otherwise you'd have to search for the window. Alternately, you could just use two files: an opener and the remote client DB. Sending enter acknowledges the dialog; you then delay, and send the key to run macro #1 of the opener, which opens the remote DB and starts the script. Or the Applescript could directly open the remote file & run the macro.

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.