February 20, 200619 yr I have two related drop-down menus. My selection in the first menu affects what I see in the second. Produce Type (fruit, vegetable) Produce Kind (apple, pear, carrot, celery) For example, if I choose "fruit" in the first drop-down, my choices in the second drop-down are apple and pear, so I choose one of those, say, apple. Problem is, I can go back up to the first drop-down list and change my selection to vegetable. Now I've got "vegetable" as a produce type, and "apple" as a produce kind. How can I ensure that if the user changes a selection in the first drop-down, the contents of the second drop-down field are cleared so I'm forced to make another choice?
February 21, 200619 yr overlay a button on the first value list that: - sets the second field to "" - enters the first field
February 21, 200619 yr Author That works! But any time you click in the field, you'll automatically erase the related field(s), even if you don't end up changing the value in the first field. Is there a way to erase the other two fields only if I end up changing the value in the first field?
February 22, 200619 yr Author Wow! Thank you! I really appreciate you taking the time to show me the solution. It works perfectly...
May 23, 200718 yr Comment, Brilliant! So elegant, and, compact. Thanks for posting the link to your file here yesterday
May 23, 200718 yr Michael, could you give some benefits from using your approach against: Evaluate ( Quote ( "" ); PrimarySelection) ...stufffed in the autoenter(UD): I know it can be written even simpler by the use of esc's but tougher to read. --sd
May 23, 200718 yr I believe Evaluate() should be used when you need an expression to be evaluated. Using it for its triggering mechanism alone is inefficient (see more on that here. I have no proof of that, but it seems reasonable to me. Not to mention that the structure of "this is the trigger, and this is the result" makes the logic of the calculation practically jump out at you.
May 23, 200718 yr Perhaps it's jumping out at you, but exactly the example you write about in the referenced thread, have not been moderated or altered from version to version of the "Using Filemaker X..." So your reservations havn't made much impact on Scott Love and gang ...YET! should be used when you need an expression to be evaluated But as such isn't there much disitinction in making a value versus a null value in my humble opinion ...Remember I do as one of my trademarks/idiosyncracies use Case(0;0) ...instead of either esc'ing or Quote( --sd
May 23, 200718 yr Well, I can only state my own opinion... I missed your second point. I am still looking for a problem where Case(0;0) would be a solution, so I don't really need to consider alternatives for it.
October 22, 200916 yr Incredibly useful series of posts on conditional value lists; many thanks - I believe I'm starting to get an inkling. I do have one question, which I'm asking so that I might better understand the various alternatives. Instead of having one TO of table and two of values as comment did, I got similar results from creating one table each of the values themselves and of a value catalog. Is there a way to assess which approach will be most efficient/clear? VeggieTales.fp7.zip
Create an account or sign in to comment