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

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

Recommended Posts

Posted

OK, for some reason I'm having trouble switching between databases.

We have a main company database and everytime I switch to a sub database, I usually just maximise the new db over it, then for switching back I just minimise the old database underneath it - so you get a pretty fast changeover.

Rather than minimising one, then maximising another window where you get a horrible delay.

In this case however, I'm using troi dialog for some dialog boxes in the sub-database but when I exit from the dialogs and try to switch back to the main database, it does it for a second, then the sub-database re-activates over the top.

I've tried all kinds of script steps - refreshing windows, having about 5 minimize steps in a row, but it still happens.

Anyone had this problem before?

Anyone got any best practice scripts for switching between databases?

This is really starting to bug me - I've taken the script apart and not found anywhere where there could be a problem.

Thanks

Posted

The script step that calls a script in the target db, or a hide step, must be the LAST step in the original db. Or it must be the last step before an End If that ends the script.

E.g., if you have something like:

hide window

exit script

You will end up back in the original db, the window un-hidden.

Posted

I've never had this problem in the past but I'd tried loads of different order of my script steps.

You are correct - I switched the offending if statement to the end of the script and it seems to be working now.

Thanks for that suggestion!!

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