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.

Close Database and go back to Main Switchboard

Featured Replies

I have a main switchboard which links 7 other databases via buttons and scripts. It works well to take me from main switchboard to individual database. In individual database I have another button that say exit, which is supposed to take me back to the switchboard (which it does) -- here's the problem. I tell the script to close the current database before it goes back to main switchboard, but it doesn't close the file - it does return to the main switchboard, but when you exit the switchboard the other database is still open and you must close this separately.

here is the script I have on the exit button:

close file [current file]

open file ["switchboard"]

What am I overlooking?

Thanks for your help.

Rhonda:

Welcome to the Forums.

You'd be better off doing it this way. Have a script in your switchboard which has the single step Refresh Window [bring to front], and all your other files, when they exit, should have a script which says:

Perform Script [your new script in the switchboard]

Close File [current file]

The thing that gets me is that your exit script really shouldn't work at all, because the Close File [] step (as I understand it) should kill the script as well as the file.

-Stanley

  • Author

I am really new to FM and to scripts. I am NOT a programmer. I don't even have documentation of any kind for the FM 7 Developer. It has been a process of using the help function to figure out how to set privileges and various validations of fields. I can't believe they don't have a copy of documentation anywhere here at work. How can you have a program without doc? Anyway,

Can you send me an example of a switchboard and script?

Thanks.

Rhonda

The documentation is in the program: Help | FileMaker Developer Help.

Since you're not a programmer, you'd better get Stars' Learn FileMaker Pro 7 and work through the problems at the end of each chapter. As for the specific problem, in the script, change layouts first, then close the previous file.

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.