November 10, 200817 yr 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)?
November 10, 200817 yr 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.)
November 15, 200817 yr Author 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?
November 16, 200817 yr 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