![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a question about the behavior of global fields and FM8 variables in a shared database. By the way, I am using FMS7 for hosting some databases, and the clients are FM7 and FM8 (will change all to FM8). First, I noticed the following behavior for global fields: - if I have a local (not shared) database, then if I change a global field and close FM, the value is saved - if I take the database and host it on the server, each client will see the last saved value before hosting, and all changes to global fields are visible only in the current session, which means: -- if one client modifies a global field, other clients will not see the changed value; it's as if each session has a separate copy of that field -- the modified values are not saved to the server - it keeps the last value that was saved before hosting Can you please confirm this behavior (I'm not sure I got it right) and perhaps explain it if you know the reasoning? |
#3
| |||
| |||
|
|
I have a question about the behavior of global fields and FM8 variables in a shared database. By the way, I am using FMS7 for hosting some databases, and the clients are FM7 and FM8 (will change all to FM8). First, I noticed the following behavior for global fields: - if I have a local (not shared) database, then if I change a global field and close FM, the value is saved - if I take the database and host it on the server, each client will see the last saved value before hosting, and all changes to global fields are visible only in the current session, which means: -- if one client modifies a global field, other clients will not see the changed value; it's as if each session has a separate copy of that field -- the modified values are not saved to the server - it keeps the last value that was saved before hosting Can you please confirm this behavior (I'm not sure I got it right) and perhaps explain it if you know the reasoning? The second question is: do global variables ($$xxx) in FM8 have the same behavior as described above? Thanks Adrian |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Thank you both for your replies. I think I can live with this functionality, I don't really need global fields that affect all users/sessions and are stored. |
|
Sometimes I want to change the initial value of some global fields, and I think I know two ways to do that: 1. close the database, open it locally and change the desired values (cleaner but more complicated) 2. use the startup script in file options |
|
I also wanted to confirm that global variables are local to each session. This is good for what I need to do. Of course, I didn't expect them to be stored in the database. |
#6
| ||||
| ||||
|
|
I don't really need global fields that affect all users/sessions and are stored. You most certainly do!! That's what the regular fields are! It wouldn't be much of a database without them. |
|
Sometimes I want to change the initial value [...] #1 has issues in that you must restart the database on the server to make any changes. Its also vulnerable to inadvertantly getting reset during an import/upgrade. |
|
#2 has issues in that you must restart the database on each client to make any changes. |
|
#3 Using a single record "preferences" table is generally the best solution. |
#7
| |||
| |||
|
|
42 wrote: I don't really need global fields that affect all users/sessions and are stored. You most certainly do!! That's what the regular fields are! It wouldn't be much of a database without them. Well, I was talking about global fields (one field per table, not per record), to be used as variables or temporary input fields. |
|
Sometimes I want to change the initial value [...] #1 has issues in that you must restart the database on the server to make any changes. Its also vulnerable to inadvertantly getting reset during an import/upgrade. Agreed #2 has issues in that you must restart the database on each client to make any changes. That's not a problem in my case. #3 Using a single record "preferences" table is generally the best solution. But then it would not be local to each session. |
![]() |
| Thread Tools | |
| Display Modes | |
| |