New Window
 
Purpose 
Creates a new window based on the foreground window.
See also 
Format 
New Window[Style: Document/Floating Document/Dialog; Name: <name of window>; Height: n; Width: n; Top: n; Left: n]
Options 
You can choose one of the following window styles:
 •
Document Window opens a document window.
 •
Floating Document Window opens a floating document window.
 •
Dialog Window opens a dialog window.
You can specify these window settings:
 •
Window Name is the name for the new window. Window names do not have to be unique.
 •
Height is the height of the new window, in points.
 •
Width is the width of the new window, in points.
 •
Distance from Top is the new window’s distance, in points, from the top of the FileMaker Pro window (Windows) or the top of the screen (OS X).
 •
Distance from Left is the new window’s distance, in points, from the left of the FileMaker Pro window (Windows) or the left of the screen (OS X).
You can set these window controls:
 •
Close enables the close button in the window’s title bar.
 •
Minimize enables the minimize button in a window’s title bar.
 •
Maximize enables the maximize button in the window’s title bar.
 •
Zoom Control Area enables the zoom control and Mode pop-up menu at the bottom left of the window.
 •
Resize allows users to resize the window.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server scheduled script 
Yes 
FileMaker Go 
Partial 
Custom Web Publishing 
Partial 
FileMaker WebDirect 
Partial 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
This script step creates a new document window, floating document window, or dialog window based on the active window.
It is not necessary to enter values for each option. When no value is entered, FileMaker Pro uses the default value associated with the Window menu > New Window command.
See Working with windows and About window styles.
Note  In FileMaker WebDirect and Custom Web Publishing, this script step opens a new virtual window in the web browser. Inactive virtual windows remain open but are not visible. To change the current (active) virtual window, use the Select Window script step. Window style settings are not supported.
Example 1 
Goes to the Customers layout in a new window and sorts by the Customer ID field.
New Window [Style: Document; Top: Get ( WindowTop ) + 25; Left: Get ( WindowLeft ) + 25]
Go to Layout ["Customers"]
Sort Records by Field [Descending; Customers::Customer ID]
Example 2 
Goes to the Print Invoices layout in a new floating window and enters Preview mode.
New Window [Style: Floating Document; Name: "Print Invoices"; Top: Get ( WindowTop ) + 25; Left: Get ( WindowLeft ) + 25]
Go to Layout ["Print Invoices"]
Enter Preview Mode [ ]
Related topics 
Go to Layout script step
Defining calculation fields
Script steps reference (alphabetical list)
Script steps reference (category list)