Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Startup and Global Fields

Featured Replies

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

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

  • Author

I'm assuming that this table has 1 record. Is that correct?

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.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.