Jump to content

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

Recommended Posts

Posted

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

Posted

yeah ugo,

the file is on the hard drive , it works fine ...but my file is on server ....it does not work fine smile.gif

I still don't know why ...

Thanks anyway

Anh Tran

Posted

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 smile.gif

Thanks

Anh Tran

Posted

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?

Posted

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.

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