Skip 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.

Record/Field Relations?

Featured Replies

I have two tables; "TableA" and "TableB". Each table has four fields; "1", "2", "3", "4". What I want to do is...

When I create a new record in TableB, I'd like to do something like this:

TableB/Field1 = TableA/RecordX/Field1

TableB/Field2 = TableA/RecordX/Field2

TableB/Field3 = TableA/RecordX/Field3

TableB/Field4 = TableA/RecordX/Field4

"RecordX" is a specific record in TableA...it never changes. I can get this to work using a series of Go To/Copy/Paste type of scripts, but this doesn't seem to be very elegant and I have the feeling I'm not fully understanding the power of relational dB (I'm new here, remember) and that there must/should be a more efficient way to script this. Thanks in advance for any help.

Kirk

You shouldn't need to script this. What makes RecordX in TableA unique, perhaps a serial ID? In other words if you needed to perform a find in TableA how would you define the find to return only RecordX?

Create a new GLOBAL field in TableB - g_RecordX_Field1 = "Insert what makes RecordX unique here". Then relate the two tables TableB::g_RecordX_Field1 = TableA::"UniqueField". Now you can use a lookup for Field1, Field2, Field3 & Field4 over this relationship.

Not quite sure I understand what you want here. But I think what you want can be done with auto-enterd calculations.

It looks like every record would have the same data in these four fields.

  • Author

Thanks much...that worked exactly as I had hoped. It was the lookup part of the equasion that I was missing. Thanks again for the assistance.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.