Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7257 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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

This topic is 7257 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.