burningman Posted November 10, 2008 Posted November 10, 2008 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)?
Fitch Posted November 10, 2008 Posted November 10, 2008 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.)
burningman Posted November 15, 2008 Author Posted November 15, 2008 Dear Fitch thank you for your answer. It helps -)). 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?
mr_vodka Posted November 16, 2008 Posted November 16, 2008 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now