Script Steps Reference
Table Of Contents
- Contents
- Script steps reference (alphabetical list)
- About script steps
- Control script steps
- Navigation script steps
- Editing script steps
- Fields script steps
- Set Field
- Set Field By Name
- Set Next Serial Value
- Insert Text
- Insert Calculated Result
- Insert From Device
- Insert From Index
- Insert From Last Visited
- Insert From URL
- Insert Current Date
- Insert Current Time
- Insert Current User Name
- Insert Picture
- Insert QuickTime
- Insert Audio/Video
- Insert PDF
- Insert File
- Replace Field Contents
- Relookup Field Contents
- Export Field Contents
- Records script steps
- New Record/Request
- Duplicate Record/Request
- Delete Record/Request
- Delete Portal Row
- Delete All Records
- Open Record/Request
- Revert Record/Request
- Commit Records/Requests
- Copy Record/Request
- Copy All Records/Requests
- Import Records
- Export Records
- Save Records As Excel
- Save Records As PDF
- Save Records As Snapshot Link
- Found Sets script steps
- Windows script steps
- Files script steps
- Accounts script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Glossary
Windows script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 164
Close Window
Purpose
Closes the currently active window or any other window by name.
Format
Close Window [Current window or Name: <name of window>; Current file]
Options
• Click Specify to select which window you want FileMaker Pro to close. You can enter literal
text or click Specify to generate a name from a calculation.
• Select Current file only to restrict matches to the current file (not selecting this option
matches all available FileMaker
Pro files).
Note Closing the last window of a file closes the file and halts execution of the current script. In
FileMaker
WebDirect, closing the last window logs out the current web session.
Compatibility
Originated in
FileMaker Pro 6.0 or earlier
Example 1
Goes to a related record in the Invoices table using the Print Invoices layout, prints, and closes the
window.
Go to Related Record [Show only related records; From table: "Invoices";
Using layout: “Print Invoices”; New Window]
Print [Restore: Printer; No dialog]
Close Window [Current Window]
Example 2
Closes the current window if it is hidden.
If [Get ( WindowVisible ) = 0]
Close Window [Current Window]
End If
Where the script step runs Supported
FileMaker Pro Yes
FileMaker Server scheduled script Yes
FileMaker Go Yes
Custom Web Publishing Yes
FileMaker WebDirect Yes
Runtime solution Yes