AnsweredAssumed Answered

In preview mode new window command does not show window and Exit Preview button fails

Question asked by BruceHerbach on May 13, 2012
Latest reply on May 14, 2012 by TSGal


In preview mode new window command does not show window and Exit Preview button fails


FileMaker Pro


FileMaker Pro Advanced 12.0v1

Operating system version

Mac OsX 10.6.8

Description of the issue

While in preview mode,  open a new window.  Window does not appear.  After this the close window command no longer works.  Clicking "Exit Preview" button toggles between browse and preview mode.  In Browse mode "Exit Preview" button is still visible.

Quit FileMaker menu command is grayed out and the X close window button doesn't work. 

Running a script with the command "Close Window" fails to close the window.

Steps to reproduce the problem

The problem occurred when running the script below through the debugger with the data view open.
Note: The new window command returned a 0 result in the debugger,  but the window failed to appear.

# # Saves letter as pdf and prints it. # # Set Variable [ $Letter_type; Value:Case (
Get ( LayoutName ) = "Request for Adjournment Letter"; "Adjournment"; "Undefined" ) ]
Set Variable [ $kf_trafficStop; Value:TRAFFIC::__PK_TrafficStops ]
Set Variable [ $fname; Value:Choose(Abs(Get(SystemPlatform)) -1; "imagemac:" & Get ( DesktopPath ) & "_ltr.pdf";
"imagewin:" & Get ( DesktopPath ) & "_ltr.pdf") ] Enter Preview Mode
Save Records as PDF [ File Name: “$fname”; Records being browsed ] [ Document - Compatibility: Acrobat 7 and later ] [ Pages - Number Pages From: 1; Include: All pages ] [ Security - Printing: High Resolution; Editing: Any except extracting pages; Enable copying; Enable Screen Reader ] [ Initial View - Show: Pages Panel and Page; Page Layout: Single Page; Magnification: 100% ]
[ Restore; No dialog ]
Set Variable [ $window; Value:Get ( WindowName ) ]
New Window [ Name: "pdf"; Top: 100; Style: Document; Close: “Yes”; Minimize: “Yes”; Maximize: “Yes”; Zoom Control Area: “Yes”; Resize: “Yes” ]
Go to Layout [ “Letters Form View” (Letters) ] New Record/Request Go to Field [ Letters::Letter_PDF ] Insert PDF [ “$fname” ]
Set Field [ Letters::Date_Sent; Get ( CurrentDate ) ] Set Field [ Letters::fk_trafficstop; $kf_trafficStop ] Set Field [ Letters::Letter_type; $Letter_type ] Close Window [ Current Window ]
Select Window [ Name: $window; Current file ]

Expected result

New window would appear  and after script completes, window command, exit preview and Quit FileMaker would still be available system operations.

Actual result

New Window failed to appear even though the script step returned a 0 result.
Unable to close windows or Quit FileMaker after script was run.

Exact text of any error message(s) that appear

No Error messages. To Resolve had to force quit FileMaker.

On restart FileMaker failed to start and generated a crash report.  If you want it please let me know


Add the script step Enter Browse Mode before New Window command and Window appears.  Rest of script works correctly