FileMaker Close Window Script Step / Off Screen Processing

From Dwayne Wright PMP
Certified FileMaker Developer

WEB: www.dwaynewright.com
EMAIL: info@dwaynewright.com
TWITTER: dwaynewright
YOUTUBE: FileMakerThoughts

Please Note: If you are viewing this page in a news feeder, the images may get munged up a bit. For the best experience, please visit the journal directly by clicking (here).

The Close Window script step can find an open window by its name and close it. It can also be used to close the current window without the need for specifying its name. The name of the window option has a nice check-box option of using the current file only. This feature was added via FileMaker 8 (I believe) and is very helpful if a user has multiple FileMaker files open and these files may have similar window names.

HOW IT IS USED
I've never seen the Close Windows script step used unless it is with an associated Open Window. Many times duel windows are used when ...

  • drilling down to get more informaiton listed in a portal row
  • using a FileMaker layout to look like a robust dialog box
  • opening a window off screen to do some processing of data 


Here you can see a script that I created about a week ago with my personal copy of InBizness Money. It simply creates a new record if my net worth has changed on startup and I can see it in a portal on the main layout. Notice how the new window opens at a -1000 top position to process the routine off screen and then has an ending close window step. 

=
More info about the author and FileMaker in general, contact me at info@dwaynewright.com.

© 2008 - Dwayne Wright - dwaynewright.com

The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.