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 going to wrong layout on exit

Featured Replies

I'm pretty sure this is a bug in FMP7.

I have a Print All script that opens a new window, performs a find, loops through all the records and prints each one, then closes the window. The problem is that FileMaker then switches my original window to another layout. It's always the same one, and unfortunately, it's a utility layout that's of no use to the users and completely takes them out of the navigation system I built.

I remembering having this problem before, but i can't remember how I solved it or worked around it, I also can't find any threads here about it.

Has anyone else had this problem? It's kinda a big deal over here.

Thanks

I doubt it's a bug. You may be switching the layout in there somewhere, either with Go to Layout, or Go to Related Records [].

You can trace the script (or post the complete script for us to look at.) Maybe a Go to Layout [ original layout ] script step at the end of the calling script will fix it.

  • Author

How can I post a script?

  • Author

Ok, I found the print button, I guess that will do.

PrintToShipSelected.pdf

Try adding a step to zoom or maximize your original window after closing the other one. It sounds like the original window may simply have been minimized.

  • Author

The original window isn't minimized, it's the one getting changed to the wrong layout. I can tell since I've set it's title.

Also if I put a pause step as the last step, everything is fine until the script exits. That is, it pauses on the correct layout on the last step of the script and then switches layouts after the script is done.

Hmm. Can you attach a sample of your file?

  • Author

Man... It's a huge multi-file setup with lots and lots of data in it. Let me see what I can do.

Interesting development: the error doesn't happen on on machine. Same version of FMP. Dunno2.gif

A clone of the problem file should be sufficient.

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.