FileMaker Function of the Week: WindowNames

I like this function–it’s easy to use and can be called as a modular subscript if you send a variable or script parameter to it when invoked:

WindowNames

Simple database systems may be easily contained within a single window, but you don’t have to get too terribly complicated before popping a new window makes a lot a sense. Whether it’s an off-screen window for creating a related record or a specialized dialog box to guide a user through a tricky process, the single window interface isn’t always practical. But with the flexibility of multiple windows comes the responsibility of managing them.

WindowNames is your window to window wrangling. When invoked, WindowNames produces a return-separated list of the windows associated with the current file. While it’s rare to need a list of window names for a file that you’re not currently in, it is possible.

The concept is simple:  test to see if a window with a given name exists.  If not, open a new window, otherwise go to the existing window.  Toss in a refresh window step if necessary, and you’ve kept your open duplicate window count at zero.  Sweet. The example script is at the link.

FileMaker Function of the Week: WindowNames.

Julian E… Foter CC BY-NC-ND

Liked Liked
Need FileMaker Development Help? Or to purchase FileMaker Software?
Contact FM Pro Gurus for help