AnsweredAssumed Answered

WebDirect Does Not Exit As Expected After Using OnLastWindowClose

Question asked by danmarks on Jul 18, 2014
Latest reply on Sep 30, 2014 by TSGal

Summary

WebDirect Does Not Exit As Expected After Using OnLastWindowClose

Product

FileMaker Server

Version

13.0v2

Operating system version

Windows 2008 R2

Description of the issue

When using the attached script on event OnLastWindowClose via WebDirect the user is not returned to the database list if they select 'Yes' on the dialog presented. It simply presents the dialog then does nothing. When this script is run in FileMaker Pro the application exits as expected.

For reference the dialog options are:
1 - Yes
2 - No

Steps to reproduce the problem

Tried on a different database, and same problem appears.

Expected result

When user presses Yes in dialog to return the user to database list in WebDirect (ie exit).

Actual result

After the option is selected in the dialog, nothing happens.

Workaround

Note: this is only a temporary fix, and not a great one at that.
As I need that message to appear for pro clients, and not necessarily webdirect I prevented webdirect users access to the script via security permissions. This does flag a "You do not have permission to do that" message when the user runs a exit script step, but does then return the user to the database list and exit as expected.

Screen_Shot_2014-07-18_at_15.05.56.png

Outcomes