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.

Populating foreign key via lookup.

Featured Replies

I am trying to populate a fk. The way I am doing it is that I have a value selected from a list via a field in the parent table, and then have the pk corresponding to it in the parent table looked up and auto entered in the fk field of the child table. It worked for one record, got the right pk to populate the fk, but it's not worked since. What am I doing wrong? 

I think what you're trying to achieve may be best accomplished with the following:

1. Place the fk field on the parent layout.

2. Define your value list:

    - based on the primary key field

    - choose the option "Also display values from the 2nd field"

    - defind the 2nd field to be the "value" that the user chooses

    - select (optional) "show only values from second field"

3. Note that, in this scenario, setting the fk field Control Style as drop down list vs Pop up field will determine whether the 1st field or the 2nd fields in your value list is displayed when it the field is unselected. 

  • Author

Many thanks, esp. for the last (3) tip which I wasn't aware of. That's the initial way I went about it, which I suppose is also the standard way to go about it. I wonder why my current approach isn't working...

I wonder why my current approach isn't working...

You could post the file here (or a clone) if you want someone to look at it -- or see if you can reproduce the problem in a little test file. 

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.