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.

Modifiable data as relashionship key!

Featured Replies

I know that using modifiable data as the relationship key between tabls is a no-no. Here is what I want...

Table A with one or more ID fields that relate to table B. In story-problem-speak, let's say table A is an event and table B are participant names and each record in table A can have, say, three particpants.

So far so good, but the trick is to build a layout with three layout-fields that each display a specific piece of data from the related table B, but not the ID number. I want the related piece of data instead.

It would be nice to have the layout use a drop-down listbox to select entries from table B and when selected, it would update the appropriate ID field in table A to reflect the data chosen from the drop-down listbox.

I could use some help to point me in the right direction here.

  • Author

I suppose a field that I filled with a lookup value would work if it had an attached value lookup drop-down listbox attribute AND just at the moment the value was chosen a script would run to update the ID value. But is there a way to run a script when a field changes value??? I didn't see how to do that.

"I know that using modifiable data as the relationship key between tabls is a no-no."

Now you know why. Once the relationship key changes you can no longer perform a re-lookup to update the keys!

  • Author

If a script could automatically be called when a layout shows a new record and again when a field shown in the layout changes, then I think it could work. The lookup field would be global and set only for purposes of displaying the looked-up value rather than the underlying table linking ID. So the user sees a dropdown value list that looks something like...

Bob

Carol

Ted

Alice

Then when one is picked, the PersonID field gets updated with the correct value. The problem, this solution requires triggering a script to run at certain points that I don't know how to trigger stripts at.

Does everyone else who build data entry layouts with related tables force the operator to manually enter the KeyID field numbers?

Create an account or sign in to comment

Important Information

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

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.