?
Solved

Multi-Level Relational Checkboxes

Posted on 2012-04-05
4
Medium Priority
?
476 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 25

Expert Comment

by:Will Loving
ID: 37812686
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
ID: 37812829
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 25

Accepted Solution

by:
Will Loving earned 2000 total points
ID: 37814516
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
ID: 37824593
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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

771 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