Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script to switch layouts?

Featured Replies

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

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.

  • 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

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.