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

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

Recommended Posts

Posted

It’s not as easy as:

PatternCount ( Get ( ApplicationVersion ) ; "Server" )

Anyone know how I can determine if the FM application (FMP or FMPA, not Server) that a script is running on is the client or the server application?

When using a remote  database that is hosted on a FM application (not FMS), speed is very often an issue. So I need to determine if a script is executed locally on a FM application that is acting as the server (fast) or if the script is running on a client FM application accessing a remote database (slow). I would need to Exit the Script in the latter case.

Checking the computer name (how can you do that?) would probably work, but is not very "safe". Any ideas how you could do that?

Thanks a lot for any ideas,

Gary

Posted

You could store the PersistentID of the server and check that every time the script runs. Get( PersistentID )

Posted

Your persistent ID on the server would only change when you uninstall FMS and reinstall. And while those IDs can be the same on the clients when they are imaged, that isn't really an issue for you as you would only really care about the server ID. You can also easily check if the PersistentID you get on the server is not an empty one with that thread.

I've encountered the same issue described in that thread on iPads. Uninstall the FMGo and the ID changes. It's not an issue for me perse but something to keep in mind.

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