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.

Fixed relationships-global or calc?

Featured Replies

When making a relationship where all records relate to all records, is it better to use a calculation field that always equals "1", or a global field that you set to "1" for both databases.

When you create the relationship with globals, FM says it won't work, but it seems to work fine for the purpose of getting data in global fields from one db to another.

I use a calculated field in the parent file so that it's harder for a user to accidently change the value. In the related file, it must be a calculated field so that it can be indexed.

  • Author

In the related file, it must be a calculated field so that it can be indexed.

Like I said, when you relate with two globals, FM says it won't work because the field cannot be indexed, but then it seems to work just fine for passing variables in globals around... just kinda surprised me.

This was just an experimental database I was creating, I'm not actually using this... when I looked back in a past project I realized that you don't even need an all to all relationship to pass globals. Even if the record has no related records, it can still pass globals to and from the related file... kewl.

I usually use a global field in the Parent table, and a text field (indexable) in the child table. I just make sure the Child key field auto-enters the correct data upon record creation.

  • Author

just make sure the Child key field auto-enters the correct data upon record creation.

or you could just use a calculation field and make it always =1

I use calculated fields, since that way you can ALWAYS relate in either direction without needing to worry about having the necessary calcs and globals. They are already there.

To add to the others, I use a calc that =1.

As well, I always use a template that already has a that calc in it so I never use a global.

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.