Anh_Tran Posted May 27, 2003 Posted May 27, 2003 Hi all, I have 2 globals dates field , field_1 and field_2 are 2 globals date field, I set field_1 = field_2 and field_1 changes as i use script setfield. I put field_1 in the header, but each time I open the file, the field_1 keep the old date, not the new date that I assign to field_2. Somebody have this problem before? Thanks Anh Tran
Ugo DI LUCA Posted May 27, 2003 Posted May 27, 2003 Not sure I got it.... The script must always be triggered. Not only once...
Anh_Tran Posted May 27, 2003 Author Posted May 27, 2003 yeah ugo, the file is on the hard drive , it works fine ...but my file is on server ....it does not work fine I still don't know why ... Thanks anyway Anh Tran
Anh_Tran Posted May 27, 2003 Author Posted May 27, 2003 Anyways, it still does not work ...so I use the trick is that I keep a temporary field and set it when closing and opening....it is not the good way but it works Thanks Anh Tran
bradm98 Posted May 27, 2003 Posted May 27, 2003 I think global fields are maintained separately for each user when sharing files on a server. Additionally, the values are only stored for that session, so once you log off and log back on, I think the value will change back to whatever value was last set when the file was being edited locally/unshared. Not sure I understand all the nuances here... Do users need 'personalized' values for these dates or should the dates be consistent across the application?
Fitch Posted May 27, 2003 Posted May 27, 2003 Global fields are local to each user, they won't be saved in a server-hosted file. The file will always open with the value that was in the field when the file was copied to the server. Your options are: 1. Close down the server, open the file with FileMaker Pro and change the field. 2. Kick everyone else off the server so you're the only user, change the field, then bring up the Define Fields dialog and click OK. This has the same effect as above. 3. Script the population of the field. 4. Use a single-record "System Prefs" file where you can store all the values you want, and access them using a constant relationship (i.e. "1" on both sides of the relationship). This is a very popular method to employ "global" values that need to be updated and shared.
Anh_Tran Posted May 28, 2003 Author Posted May 28, 2003 Now I understand .... I use the script to see the date change each time I log on. Thanks All Anh Tran
Recommended Posts
This topic is 7920 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