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

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

Recommended Posts

Posted

Hi there!

I have these two files Order and Order_Item database. A script is run in Order database to execute a script in Order_Item database that then does a couple of things. The problem is that the Order_Item database goes to the front of the desktop which is annoying to the user. (It moves in front of the Order_Database that the user is working on)

Any idea on how to stop this behaviour? mad.gif" border="0

Any tips?

Thanxs

Steve Griff

Posted

Hi Steve,

In you Order script, before the lign "Execute sub-script" (from Order_item), I would place an Open Database lign and ask to open it in background (checkbox on the left). It should work. Tell me...

Olive smile.gif" border="0

Posted

Olive is close: put a Freeze Window step in the Order script then a Perform Script [external] step,. but don't use Open.

In the external script (in the line Order_Items db) place a Freeze Window step at the start and make sure the script doesn't refresh the screen anywhere (it's OK to change layouts just don't select refresh). Finish up by externally calling a script in the first database that finishes with a Refresh [bring to front] script step.

Open script steps are not needed before calling external scripts. The Open command will cause the startup script (if any) in the new database to run which may resize the window or refresh the screen unnecessarily. Just calling a script externally will open the file but not run the startup script.

The Freeze Window step prevents FMP from updating the display, and this alone can speed up the execution of scripts dramatically. I'm usually liberal with Freeze Window steps and very careful when and where I refresh the display.

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