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.

How to create a global "Title" for the entire file by typing into one field?

Featured Replies

Hello All,

 

Hoping one of you fine folks can help me with a strange little problem I've got. I'm trying to create a field that you can type a value into once, and have it show up as that same value on every single record in the table.

 

I tried just doing a global field at first, but I quickly found out that doesn't work with shared files. Silly me for actually expecting a global field to work "globally".

 

Next I tried making a value list based on the index of said field, and then displaying it with an unstored calculation defined as the contents of that value list. I thought this was a pretty good workaround, but it turns out that it affects the performance of the database horribly when viewed on FM Go, as it is recalculating the unstored calc everytime someone does a find, resulting in 45-plus-second searches.

 

So for my next attempt, I'm thinking about maybe putting the title in a single record in a separate table and relating it to the original table somehow. I can't figure out how to relate the table in a one-to-many relationship, though.

 

Does anyone have any better, simpler ideas? Or any suggestions on how to relate the one-record table?

 

 

Thanks in advance.

Solved by jbante

Go to solution
  • Solution

Your one-record system preferences table is a step in the right direction. As part of your startup (OnFirstWindowOpen) script, go to a layout based on that table and load the value from your systemName field to a $$SYSTEM_NAME global variable. You can then display that global variable as a merge variable throughout your file. If you change the value, users will have to re-login to trigger a reload of the value for each user session.

  • Author

Thanks for the info. The thing with variables, though, is that they tend to disappear just like global fields. I'd like to define this title field about once per month, from my admin layout, and not have the users bother with title entry.

You should read up on Global Fields and Variables, as this not a true statement.

Thanks for the info. The thing with variables, though, is that they tend to disappear just like global fields. I'd like to define this title field about once per month, from my admin layout, and not have the users bother with title entry.

 

Start with this FileMaker Help topic. Using Variables.

 

BTW, Depending on how you use them, they are different, but disappear, I don't think so.

Edited by Lee Smith
BTE added

Thanks for the info. The thing with variables, though, is that they tend to disappear just like global fields. I'd like to define this title field about once per month, from my admin layout, and not have the users bother with title entry.

 

Global variables will disappear after each user closes their session, true; but the variables would get re-populated each time the user logs back in by the OnFirstWindowOpen script. The effect is the illusion that the variable is persistent. The users would never have to bother with the admin layout, because the OnFirstWindowOpen script written by you would handle that for them.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.