Solved

Multi-Level Relational Checkboxes

Posted on 2012-04-05
4
469 Views
Last Modified: 2012-04-09
I need to create three checkbox sets that are relational. The goal is to list individuals as being part of a primary list set, with a second level list set and third level list set that changes based on what is selected in the primary list set.

Say, I have three checkbox fields, 1 2 and 3. I need to check something in one and have the value list update in field 2, check something in 2 and it changes in 3.

I was trying to set this up using a "categories" table with recursion, but haven't been successful. Can someone recommend some tips to wrap my head around this?

I have attached my sandboxing file.
Checkboxes.fp7
0
Comment
Question by:Eroots
  • 2
  • 2
4 Comments
 
LVL 24

Expert Comment

by:Will Loving
Comment Utility
The attached file does what you are looking for. The problem was that you needed to have a relationship from the selected value in the checkbox to the available child Categories, in other words, from Checkbox1 to ParentCategory. That they acts as the source for the value list to show you what values might be available for CheckBox2. Similarly, you needed another relationship between Checkbox2 and ParentCategory to show the possible values for Checkbox3.

In addition, I created a script and then applied it as a Script Trigger to all three fields. The script simply clears the values in the parent and child fields (Checkbox3 or both Checkbox2 and 3) if the Parent value is changed. That prevents old entries from remaining if the parent value is changed.

Relationship GraphCheckboxes-v2.fp7
0
 

Author Comment

by:Eroots
Comment Utility
Is there going to be any way to expand on this concept so I can actually use it as a series of checkboxes, rather than a menu and radio sets?

I figure there will most likely be people that cross into multiple secondary and tertiary categories.

Thanks, the relational diagram makes sense, I figured recursion wasn't the way to go for the interface.
0
 
LVL 24

Accepted Solution

by:
Will Loving earned 500 total points
Comment Utility
The attached file is almost identical to the previous one except that I've converted CheckBox1 and Checkbox2 back to checkbox fields (you could do the same with Checkbox3 if you want). When you check multiple checkboxes in a field, what FileMaker is doing under the hood is creating a return-separated list of the selected values. And, when a field with multiple return-separate values is a key in a relationship, each of the values acts as a key with the related records showing in aggregate.

So, if you check Primary Category 1 and Primary Category 3, all the Secondary Categories for either Primary value will be listed in the next value list. If functions similarly going from 2 to 3.
Checkboxes-v3.fp7
0
 

Author Closing Comment

by:Eroots
Comment Utility
this was the baseline I was looking for. I made some tweaks to the scripting and am still working out some conditions (and what to do in find mode) but this works for what I need for now! Thanks!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now