Newbies camitz Posted January 20, 2009 Newbies Posted January 20, 2009 New to FileMaker, been working with sql-based databases before and can't really get my head around a few things. A basic contact register: You've got a contact layout and a portal with phone numbers, an unlimited number. I've got the relationships setup etc. One of these phone numbers is the primary, so you got a checkbox. But only one of these can be set at a time. So when the user checks one, all the other have to go unchecked, for that particular contact. How do you do that? Much obliged. Martin
bcooney Posted January 20, 2009 Posted January 20, 2009 I store the ID of the preferred phone in the Contact record. I script the checkbox to set the ID.
Søren Dyhr Posted January 20, 2009 Posted January 20, 2009 So when the user checks one, all the other have to go unchecked, for that particular contact. Strictly speaking is this a radio button metaphor not a check-box ditto.... But Barbera's suggestion is otherwise succinct and to the point correct. --sd test.zip
Newbies camitz Posted January 21, 2009 Author Newbies Posted January 21, 2009 I can only agree that Barbara's solution is very good. I might say the same about you're language, where'd you learn the word succinct? Bad example, but learning how to do this with a script I feel will be useful, I'm sure of it. What if you have two primaries? (The example is really flawed now). Or better yet, a user determined number of primaries? Can it be done?
bcooney Posted January 21, 2009 Posted January 21, 2009 Camitz, two primaries? Certainly, Soren will post a link to a dictionary, lol. I think that you are alluding to the fact that you'd like to go down a list and "mark" records. This technique of adding and removing record IDs from a global field can be found here: Multi-user Marking .
Søren Dyhr Posted January 22, 2009 Posted January 22, 2009 : 1400–50; late ME < L succinctus, ptp. of succingere to gird, gather up (one's clothes), prepare for action, equiv. to suc- suc- + cing(ere) to gird, equip + -tus ptp. suffix or...: http://en.wiktionary.org/wiki/succinctus#Latin But Barbara used, the old Jeff Almquist way ... why not exploit a very usefull CF in this context: http://www.briandunning.com/cf/39 ...since your solution often can benefit from it in various methods you wish to throw after a solution. --sd
Recommended Posts
This topic is 5841 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