Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Show data from related record


This topic is 5225 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

It seems like this must be very basic, but it has me stumped.

I have two tables, agencies (kp_agency_id, agency_name) and contacts (kp_contact_id, kf_agency_id, contact_name). Each contact is a member of an agency.

I would like to store only the id of the relevant agency in the contacts table (as shown above). When a user edits a contact, I want them to be able to choose from a list of agency names, but I don't want them to see the agency id.

When the user changes the selected agency in the contacts table, I want contacts::kf_agency_id to change but I don't want anything to change in the agencies table.

Everything I've tried either makes changes to the agencies table or requires showing the id #. What am I missing?

Edited by Guest
Clarify where user is making changes
Posted

Well, for on thing you're missing a more explicit description of what you have tried. Uploading an example file is best.

But if you set up a value list to show only the value from the second field, then you'll get the result you want. Note that this works with all value list display formats (radio button, check boxes, drop down menus) but not drop down list.

See attached.

Agencies.fp7.zip

Posted

Thank you. That was one of the techniques I tried, but only as a drop-down list and an edit box. Odd that drop-downs, at least, don't work.

Ultimately, there will be many agencies, so many that an edit box that auto-fills from the value list would be more user-friendly than a lengthy pop-up menu. Is there any way to achieve that while still only storing the agency id in the contacts table?

Posted

Thank you. That was one of the techniques I tried, but only as a drop-down list and an edit box. Odd that drop-downs, at least, don't work.

Well, it's not so odd at all if you think about it.

The general design and purpose of the dropdown list feature is to allow any new value to be entered; as well as enabling easy selection of value list values. So there is a basic conflict here, and FileMaker has not yet resolved that by changing the options for drop down lists.

Posted

The general design and purpose of the dropdown list feature is to allow any new value to be entered; as well as enabling easy selection of value list values. So there is a basic conflict here, and FileMaker has not yet resolved that by changing the options for drop down lists.

What do you mean when you say "allow any new value to be entered?" Do you mean when you allow the value list to be edited and the last choice is "edit..."? That's the case with pop-up menus as well. I guess I'm not clear on the difference between drop-down lists and pop-up menus.

Posted

No, a drop down list allows items to be selected form the value list, OR the user to type *anything they want* into the field. The value list is just there to make things quicker.

IMHO drop down lists should only be used when values in a field re-occur frequently BUT there is the need to often enter new values.

No everybody agrees with me. :P

Posted

I would agree with you in a second - if the popups weren't so hideous-looking and more importantly, if they didn't force a font of their own (for the sake of the checkmarks, I suppose) and even more importantly, if that font would support more than just basic ASCII characters.

Posted

In v10 they show as question marks, and in v11 they show the values of the list.

Lee

Posted (edited)

Back to my original question. I loaded the data into the file and the pop-up menus are unworkable because they are so long. I have switched to a technique similar to one used in the templates that come with FileMaker: One field with contacts::kf_agency_id and next to it agencies::agency_name. Contacts::kf_agency_id is shown as a drop-down list of the agency names; agencies::name cannot be edited.

This works fine but I would still rather not show the kf_agency_id. Ideally, I'd like an edit field with auto-complete, validated to make sure the name the user types actually exists. I don't want to allow changes to agency names from this layout, but I also don't want to store the names in the contact table. Is there a recommended technique to achieve that?

This is what I currently have:

1zpjkmf.jpg

Edited by Guest
Clarify what I'm trying to do
Posted

if they didn't force a font of their own (for the sake of the checkmarks, I suppose) and even more importantly, if that font would support more than just basic ASCII characters.

Interesting. As Rhody says, they both show the values (on Windows). Further, they both show the values in tested 7.0v3, 9.0v3 and 11.0v2 (on Windows XP Professional). I didn't realize the display was limited on Macs (in this single regard).

This topic is 5225 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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