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

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

Recommended Posts

  • Newbies
Posted

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

Posted

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.

  • Newbies
Posted

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

This topic is 8007 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.