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

$variable visibility and sharing


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

Recommended Posts

Posted

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)?

Posted

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.)

Posted

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?

Posted

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.

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