Am I correct that you want to select a group from the Drop down list in the header?
Then what? You click the "add group to print que" button?
On what table occurrence (box in your screen shot) is your layout based?
Are you trying to create a new record in the table for every listed member of the group?
How exactly did you implement the -All- special value in your value list?
Perhaps you've seen it already but ...
To learn more about value lists in all forms and options, you might check out the Adventures in FileMaking series. Adventures 1 and 2 both address this aspect of FileMaker in great detail and depth. They are free to download.
Adventures in FileMaking #1 - Conditional Value Lists (includes details on how to set up a basic field based value list)
Adventures in FileMaking #2 - Enhanced Value Selection (what to do when a simple value list won't cut it--this includes "special values.")
Am I correct that you want to select a group from the Drop down list in the header? Yes
Then what? You click the "add group to print que" button? Yes
On what table occurrence (box in your screen shot) is your layout based? Printing layout is based off of the PrintingMain, Mainscreen is based off main.
Are you trying to create a new record in the table for every listed member of the group? Yes
How exactly did you implement the -All- special value in your value list? I used cCategoryAll to add -All- to everyone so the relationship would put everyone in it.
Sorry for the less in detail response right now, i'm currently at school and don't have much time to work. Just wanted to get this out to you as soon as I could. Thanks for the help, i'll check out those files as soon as I can.
Printing layout is based off of the is based off main.
But which is shown in your screen shot?
Is it the script that's the issue?
I can post an outline of a script that will serve, but the context (PrintingMain or Mainscreen?) is not 100% clear. I'll guess that the table where you want to see these records are PrintingMain and your layout where you select the group should be based on Main.
Set Variable [$IDList ; value: List ( Person4ConditionalValueList::PersonID ) ]
Go to Layout ["PrintingMain" (PrintingMain)]
Set Variable [$K ; value: $K + 1 ]
Exit Loop If [ $K > ValueCount ( $IDList ) ]
Set Field [ PrintingMain::ID ; GetValue ( $IDList ; $K ) ]
But your relationship using List seems unneeded here and there's no link shown to any other table occurrence but PersonDisplay. The match to this field should be by ID and I can't help thinking that you need this group of newly created records to have a common matchfield value to link them as a group to a record in some other table. But I don't see anything in you relationship map that suggests what that link might be.
Thanks for the script it got me the results I was looking for!
Sorry to return to this thread, but if I want to add Address as a field that gets copied over how would I put this in? Some addresses will be blank and therefore the list wont put them through correctly unless something is assigned to blank addresses such as "No Address". Thanks for your help!
I wouldn't use a list of the address data as there is no need. I'd use the ID field and a relationship to link to that data. You have the option of just linking to it or you can set up a field to use that link to auto-enter it in order to copy it from the related record.
See this thread: Auto Fill
Or read the "look up or Link?" sub topic accessible from the "Popovers & Sliders" exploration layout found in "Adventures in FileMaking #2".
To read a description of the two options and why you might select one method or the other.