WebDirect Does Not Exit As Expected After Using OnLastWindowClose
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.
When user presses Yes in dialog to return the user to database list in WebDirect (ie exit).
After the option is selected in the dialog, nothing happens.
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.