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

Global Fields Clearing when I exit FM

Featured Replies

Is there a way to prevent FM clearing my Global fields when I exit the application?

http://faq.filemakermagazine.com/index.php/Global_fields

Don't use them. Let us know the scenario, and someone will be sure to suggest a good alternative i'm sure.

If the globals have predefined values for start up then you could script them using the Set Field step.

Set Field (global1, "PresetValue")

If you want to capture and retain the current globals then use a closing script and save the current values to a record in table for this purpose. On start up you need a start script to to re-seed the globals in the reverse way.

Global fields are an interesting animal in FM. The newest versions of filemaker (7,8,9) allow us to use variables. In old versions of filemaker (4,5,6) , variables did not exist, so you had to use global fields instead. This is the primary reason why global fields act the way they do.

If a solution is used in single user mode (files are opened locally by one user) then the state of the global field is actually stored.

If a solution is hosted on a server to multiple users, the global field will reset to its default value. This means it will become empty, or it will reset to the last stored value when the file was opened in single user mode.

The reason the behavior is different is because in a multi-user environment, the content of a global field can potentially be different from one user to the next.

These are a few reasons (out of many) why you would use global fields:

1) to create dynamic temporary relationships by changing the content of the primary key in the global field.

2) to store graphic images for interface purposes in a separate table which allow display of the images even if a valid relationship does not exist to the table containing the graphics. (example: find mode, or situations where no records exist in the current found set)

If it is important to keep what is stored in a global field on a user by user basis, you may have to store the field contents in a user table before the application quits so that you can restore them the next time the solution is opened by a specific user.

Edited by Guest

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.