Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted (edited)

Hi --

Does anyone have a sample of a "StartUp Global Initializer Script" that will be used to init Global fields?

Thanks in advance,

Rich

Edited by Guest
Posted (edited)

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
Posted

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.

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