I cannot reproduce what you report. I created a simple script:
Show Custom Dialog [ "Hello"]
And set up an OnLayoutExit Trigger to perform this script.
I then tried several different combinations of opening additional windows, changing layouts etc and each time that I closed a window where the current layout had this trigger set, the custom dialog appeared to confirm that the script did indeed execute.
This was tested using FileMaker Advanced 13.04 on a Windows 7 system.
I suggest taking a closer look at your design--including the tables and relationships involved to see if you can spot the issue preventing your update. Some setups for what you describe might not require much more than committing records on the layout where data was modified or added. Others might require a refresh window on the dashboard layout.
Thanks, Phil. Looking at your suggestions and watching script debugger, I think the trouble is that the dashboard does require a window refresh. There is a Refresh Window step at the end of the script, but the script runs BEFORE the Bugs window is closed, so the Bugs layout is getting the refresh, not the Dashboard. Is there any way to force the Dashboard to refresh? Michael.
Do a select window that specifies the window you want to refresh just before the refresh window step.
Of course. Thanks, Phil. That fixed it.