Jump to content

Startup and Global Fields


Rich K.

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

Recommended Posts

Typically, these scripts do the following:

1. Go to a layout based on your Prefs table

2. Then, for each global/pref pair you use Set Field (gField, prefField).

This script is typically called on File Open.

PS: Your post title "Server and Global Fields" is misleading. This really has nothing to do with FMS. The only aspect to understand is that each user will have their own values in the global fields for the duration of their session.

Edited by Guest
Link to comment
Share on other sites

The Prefs table could have a record per user account. You would get to the correct prefs record using a find in an open script.

The Globals table has 1 record, yes.

BTW- This isn't the only way to accomplish setting globals. You could:

1. Create global calculation fields that = the prefs fields.

2. Use the Evaluate function to set globals to prefs when a trigger field is updated.

3. Use $$vars (if you don't need to build a relationship off the global).

4. Store Prefs and Globals in the same table. I name them so that they sort by name together: PrefField, PrefField_g.

Link to comment
Share on other sites

This topic is 5377 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.