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.

$variable visibility and sharing

Featured Replies

I've found that I can have local and global variables in FM.

Local variables are visible and valid within a certain script.

Global variables are visible and valid within a certain database (file).

Questions:

What about multi-user access?

What about multi-database applications?

Has every logged in user his own copy of a script and the local variables within this script and their respective current values?

Has every logged in user his own copy of a set of global variables and their current values set initially or by the user?

Is there a way to get from a database currently open and used the values stored in the global variables of another database (file)?

Script variables as well as global variables are maintained independently for each user.

You can pass either type of variable from one file to another using script parameters. Techniques exist to pass multiple parameters, however depending on your scenario you may find it more convenient to use global fields, which can be accessed from any file. (You need a table occurrence for this but you don't need to set up any relationships.)

  • Author

Dear Fitch

thank you for your answer. It helps B)-)).

Additional question:

If I use a field instead of a global variable, is the actual value of this field at a given time per user too or is it common to all concurrent users?

global fields are user session specific. If its served, their initial value is the value that was in the global field at the time that it was started bring served.

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.