rhody Posted September 29, 2010 Posted September 29, 2010 (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 September 29, 2010 by Guest Clarify where user is making changes
bruceR Posted September 29, 2010 Posted September 29, 2010 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
rhody Posted September 30, 2010 Author Posted September 30, 2010 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?
bcooney Posted September 30, 2010 Posted September 30, 2010 This might help: http://fmforums.com/forum/showpost.php?post/365428/
rhody Posted September 30, 2010 Author Posted September 30, 2010 Thank you for that. It seems a little clunky, but it does work.
bruceR Posted September 30, 2010 Posted September 30, 2010 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.
rhody Posted October 1, 2010 Author Posted October 1, 2010 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.
Vaughan Posted October 1, 2010 Posted October 1, 2010 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
comment Posted October 1, 2010 Posted October 1, 2010 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.
rhody Posted October 1, 2010 Author Posted October 1, 2010 I agree that drop-downs are more aesthetically pleasing than pop-ups.
comment Posted October 1, 2010 Posted October 1, 2010 It's not (only) a matter of aesthetics: popup.zip
rhody Posted October 1, 2010 Author Posted October 1, 2010 What am I missing? They both show the value list "α, β, γ, δ"
comment Posted October 2, 2010 Posted October 2, 2010 Maybe they fixed this in version 11 (I can't test it right now). It certainly doesn't work in previous versions.
Lee Smith Posted October 2, 2010 Posted October 2, 2010 In v10 they show as question marks, and in v11 they show the values of the list. Lee
rhody Posted October 2, 2010 Author Posted October 2, 2010 (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: Edited October 2, 2010 by Guest Clarify what I'm trying to do
LaRetta Posted October 3, 2010 Posted October 3, 2010 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).
comment Posted October 3, 2010 Posted October 3, 2010 (edited) Here's "before and after" in version 10.0v3. As you can see, it's NOT Greek where it should be... : Edited October 3, 2010 by Guest
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now