FAQ: File And Window Hopping

From Dwayne Wright - Certified FileMaker 9 Developer
WEB: www.dwaynewright.com
EMAIL: info@dwaynewright.com
TWITTER: dwaynewright

In a two file FileMaker solution, I want to go to the related records from one file to another. In that file, I want to make sure that I’m on a particular layout and that the window is resized properly. What is the most elegant way to do this?

Option 1
You would write a script in file 1 to do a GTRR in file 2. Then you would call upon a subscript in file 2 to go to a particular layout, bring the window to the front and resize it.

Option 2
You would write a script in file 1 to do a GTRR in a new window, going to the right layout and hard code the window size you want.

Option 3 (my favorite)
Create the layout you want in file 1 but use the file 2 reference. This allows you to stay within the same file (physically) but you are within file 2 perspectively. Then you can do your GTRR with new window without leaving the physical file. You can then use the window options within the same script.
More info about the author and FileMaker in general, contact me at info@dwaynewright.com.

© 2009 - 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.