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.

Can U Tell If Script Is Running On Server (FMPA Acting as Server)

Featured Replies

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

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

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

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.