Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Fixed relationships-global or calc?


This topic is 8072 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted

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.

Posted

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

This topic is 8072 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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