March 19, 20196 yr 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
March 19, 20196 yr You could store the PersistentID of the server and check that every time the script runs. Get( PersistentID )
March 19, 20196 yr Author Hi, good idea. However, since the PersistentID is not unique (see: https://community.filemaker.com/thread/85477), it would create a lot of hassle to work with this one. Thanks, Gary
March 19, 20196 yr 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.
Create an account or sign in to comment