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.

Auto enter related field

Featured Replies

Hello

I am sure the answer to my question is out there, but because it is so general, I have found a lot of unrelated stuff.

I have three tables as seen in the attached.  I am working in a layout based on Job Sheet Main and have a portal displaying Job Roles. I wish to select an organisation (company) by name (not ID) in this portal and have the CompanyID auto enter. 

Which is the simplest way to do this please?

Thanks

 

 

Screen Shot 2017-01-11 at 09.11.59.png

2 hours ago, William Lindsay said:

Which is the simplest way to do this please?

The simplest way is to define a value list using values from the CompanyID field, also displaying values from the CompanyName field, and set it to 'Show values only from second field'. It will look as if you're selecting the name - but the value entered be will the ID.

  • Author

Thanks comment. I actually have this set up as you describe. My users are picky and want consistency throughout - see attached. Would it be possible to select the organisation from a drop down and have it all populate the ID via a calculation?

Screen Shot 2017-01-11 at 12.39.25.png

3 minutes ago, William Lindsay said:

My users are picky and want consistency throughout - see attached

Not sure what is the "consistency" that the picture is supposed to demonstrate.

  • Author
21 minutes ago, comment said:

Not sure what is the "consistency" that the picture is supposed to demonstrate.

I guess they want to click in the field where they want the company result and not to the left of it.

I am afraid I don't fully understand what you're saying. To get the kind of display your screenshot shows, place the related CompanyName field on the layout, make it non-enterable, and use it to cover the local CompanyID (foreign key) field that has the value list attached to it. When they click on it, the underlying field will activate and they will get a drop-down (or pop-up) to select the name from.

The alternative where they would actually select the name is much more complex: you would have to define another relationship to another occurrence of the Companies table, and use it to make the local CompanyID field lookup the corresponding value from there.

Note that you can also select from portals or list views.

--
P.S. Please update your profile to reflect your version and OS.

  • Author

Thanks Comment - that does the trick - so simple and everyone happy.

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.