Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I have a stand alone db that runs on a computer and periodically needs to sync up with FMS I can not guarantee that the network is available though. So I figure to test to see if its running and if so, do an import.

What is the most elegant way to test if FMS is available? (this is similar to the heartbeat thread but I need to test from a FMP DB

Charles

Posted

The simplest is to issue the Import step and trap for errors.

...

Set Error Capture [ on ]

Import Records [ restore ]

Set Variable [ $error ; Get( LastError ) ]

Set Error Capture [ off ]

If [ $error = 0 ]

// no error

Else

// error importing records

End If

Posted

Thanks Vaughan

I have an application where my remote DB (controls a 24hr access door) pulls profile information from FMS but if and when it looses contact(wireless) with FMS I want it to be in a crippled mode. So i mirror some profile information on a local DB. Your method should work for importing but my question is what can I do if I want to reference a Server table in my local DB and the its not there? it seems that filemaker errors out about the remote database being unavailable but does not trigger an error.

I hope this makes sense.

cD

Posted

what can I do if I want to reference a Server table in my local DB and the its not there?

I'm not sure.

My gut reaction is to work backwards: make the door database self-contained. Get the remote database to connect to the door database periodically to get data updates. That way the door databases will happily work with no network connection.

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