Script Steps Reference

Table Of Contents
Windows script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 163
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.
Notes
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.
FileMaker Go does not support the Floating Document and Dialog window style options.
Also, FileMaker
Go does not support the options for positioning and resizing windows,
because it always displays document windows in full screen.
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 [Pause: Off]