January 13, 200521 yr I have a nice inventory solution in Filemaker 6 that I am rewritting in 7. In 7 I have two databases in one file, Computers and Software. In each of these I have two layouts: Computer Computer List Software Software List The interface in each of these is tabbed. Click on the Computer List tab and that layout appears, etc. In Filemaker 6 I made separate scripts for all of this. In 6, in the Computer file I had two scripts, one that went to the Computer layout and one that went to the Computer List layout. Similar situation in the Software database. Associating the script with the proper tab graphic and all worked fine. In Filemaker 7, I want to cut down on the number of scripts by using the Get(ScriptParameter) but I am not sure how to do it. Any ideas on how I could make a single script that would switch between the two layout in Computers and the two layouts in Software? Thanks Dave
January 13, 200521 yr Sure. Use F=form, L=list. When you attach a script to the F button, specify the F parameter. When you attach a script to the L button, specify the L parameter. In the script you would have an If statement, such that if the parameter equals F, you go to the form layout, otherwise to the list layout.
January 13, 200521 yr Author Thanks for the explanation of how to pass parameters. What if the solution I have has 40 or 50 layouts spread across over 20 tables all in one file? I thought about passing two parameters to a script, one indicating what table the layout is associated with and then the name of the layout (or a letter indicating which one). Within the Go to layout script step can it be structured like this? Should I pick one unique parameter for each of my layouts and just pass that? Dave
Create an account or sign in to comment