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.

Relationships between 2 separate keys?

Featured Replies

I have a situation where I have two db that must relate to each other by two fields... for example, "title" and "location", and it needs to pull the info from a record to fill other fields if and only if those two fields match each other. I tried the following without success in a field called address. RelationshipA was built between db1 and db2 through the location fields. RelationshipB was built through the title fields:

"address" field calc:


If (

(title = ::relationshipA:title) and (location = ::relationshipB:location), ::relationshipA:address, ""

)


I am not getting any errors, but nor am I getting anything in the address field. I also just tried using relationshipA, thinking maybe that since location and location were already related, i didn't need to reiterate it:

"address" field calc:


If (

title = ::relationshipA:title, ::relationshipA:address, ""

)


Still didn't work. I have related info before and am really not sure what I am doing wrong. I welcome all advice & suggestions.

Thanks!

KC

I think you are not getting many answers because we can't understand the question. To relate two files by two fields, you must create a "compound" key. You don't need all the IF statements, just create compound key fields in each file as follows:

Key (calculation, text, indexed) = title & location

Relate the two files by matching Key with Key. Your related address field is then just:

Relationship::Address

Sounds like you need a little help with the concept of relationships.

-bd

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.