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.

Entering ID based on other field Selection

Featured Replies

  • Newbies

Hi all

I am working on creating a project management database. Here is my simplified Table setup:


PROJECT                     CLIENT                       CLIENT_ID|PROJECT_ID

   -PROJECT_ID              -CLIENT_ID                  -CLIENT_ID

   -PROJECT NAME         -CLIENT NAME             -PROJECT_ID

When someone enters a new Project I want them to be able to select from a list of client names , and then have the correct Project_ID and Client_ID inserted into the Project_ID|Client_ID table. How would I go about doing this, or is this even the right kind of table setup ?

-Seth Pomerantz

On the layout for the Project, show the CLIENT_ID field from the CLIENT_ID|PROJECT_ID table, and attach this field to a value list that gets all of the client IDs from the CLIENT table. Set up the relationship between PROJECT and CLIENT_ID|PROJECT_ID to allow the creation of related records.

Now, when you click on the related CLIENT_ID field and select a client, a new CLIENT_ID|PROJECT_ID record will be created.

Chuck

....a related question...

I am working in FMP 5, and use value lists from fields quite alot, but I find that it can be a bit "Bugy" at times...sometimes I use a field from a related file that may be a simple calc joining values (usually text)from 2 other fields

(to give a unique name for example). Sometimes values dissapear & then reappear, dont work properly etc. Also I have found I cant select the first letter(from keyboard) in the same way as you can from a custom value list(jump to entries beginning with the letter you type)....

...well, 24hrs later I think I have sussed out whats going on smile.gif

...I have created another field in the "source" file, and a script to copy the contents of the "calculated" field. I then use this "copied" field as my value list, and viola! it works fine!....I think the lesson is:"dont use calc fields as value lists...." wink.gif

....anyway, any input gratefully recieved...

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.