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.

Script Variables and mult users

Featured Replies

Here's an insteresting question about script variables -

Are Global ($$) variables (with 1 repetition)going to hold the same value for each user in a multi-user situation?

I couldn't find any documentation concerning this. When I read "Global", I think like a Global Text Field - each user has their own instance of it.

Or in other words - database is being hosted on Server. User A runs Script X that sets variable $$Title to "whatever". User B comes along, and calls another script in the same file that calls $$Title - will that script receive "whatever", or something else?

I believe in the long run this won't matter either way, but I can be wrong (and have been before). I just wanted to prepare for any time this might actually need to be applied.

The global variables have to be machine specific. Really user specific (think about Terminal Services environments) to be more accurate. Otherwise they would be completely unusable.

If you used them for a counter in a loop for instance just think how messed up the output would be if one user kicked off an instance of a script that another user was already running.

Personally, I wouldn't normally choose a global variable for a counter, a local would be a better choice but the concept is the same

  • Author

Yea, that's what I was thinking too, Ted. Which is the more desirable thing, or at least in my opinion.

Variables is a great feature that saves time and resources, and should have been in place long ago. I only use Global variables if I have to pass a value from one script to another (usually run one after another).

I would like to actually test this out, but I haven't gotten a copy of FM Server yet. Has anyone out there with a copy of FM Server 8 be willing to test this out really quickly for me?

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.