Solved

Multi-Level Relational Checkboxes

Posted on 2012-04-05
4
471 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 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 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FM GO Web Viewers 1 205
FileMaker Pro Table Relationships Issue 7 280
Display results of a checkbox set 5 244
Setting up FileMaker Webdirect SSL certificate 11 351
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…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 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