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.

My Exit Script Won't Close a Related File!

Featured Replies

  • Newbies

Does anyone know how I can get a db to close another db when it closes.

I have tried putting in a script that runs on exit, with a close step but it is still leacing the child file minimised at the bottom of the application window even when the main file is completely closed. I can't see why my close step isn't working. crazy.gif

Any help on this would be greatly appreciated.

KT

Hi KT,

There are several things that can cause the problem you are experiencing, but the most likely explanation is that your main file requires data from the related file (eg in order to maintain related data displaying on its current layout) at the time when your script runs.

Thus as soon as the file has been closed, the main file opens it again (but opens it minimized) so that it can continue to display related data on its layout.

A solution is to include a Go to Layout [ ] or Toggle Window [Hide] command immediately preceding the Close [RelatedFile.fp5] step. If you use Go To Layout [ ], you will need to select a layout that does not have any related fields or other fields (eg unstored calcs) that are dependent on related data. For this you might even consider creating a special blank 'close' layout - perhaps even a 'closing splash' layout.

  • Author
  • Newbies

Hey that's fantastic!! You nailed it in one!!!

You've no idea how much time I have spent fretting over this and you've just **saved** me!

I really liked your suggestion of a closing splash screen too, that was great and I've tried it an it works, and now I'm organising some graphics for it. This is really cool!

Heartfelt thanks, CobaltSky grin.gif

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.