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.

FM7: Global Container Field Problem

Featured Replies

I'd like to have a global container field that holds my corporate logo to use in the header on all reports.

I know that when using FM Server, a Global is actually "local" to the current user, so I thought I could solve the problem with the following setup:

Table "Graphics" which contains 1 record.

Logo (a regular container field)

gcLogo = Logo (a calculation field that is a Container with global storage)

However, I can verify that gLogo is blank.

Next, I tried a similar setup, but used a self-relationship in the graphics file to make sure the global calc was working:

Logo (a regular container field)

Constant1 = "1"

gcLogo = SelfRelation::Logo (a calculation field that is a Container with global storage)

This also failed.

If I turn off "global" storage on the gcLogo field, it shows the logo properly, but then I can't reference this field from my other tables (I get the "Unrelated Table" message).

Is there a way to do what I want (A) without scripting and (B) without having to relate every table to my graphics table?

If you set the contents of a global field while you are hosting the file (open locally rather than through FMS), that value should stick when the file is accessed remotely. If the remote user were to change that value, then close and open the file again, the original value would be back. So make the field non-editable, and you shouldn't need to worry about it again.

J

  • Author

That will work, but the problem is, I'd like the artist to be able to edit the logo, and I'm certainly not comfortable giving them enough access to start / stop filemaker server.

I ended up just writing a script that sets a bunch of globals when you open the solution. Inelegant, but it works and allows me to keep the file hosted 24/7.

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.