2 Replies Latest reply on Apr 22, 2009 4:52 PM by antidote

    Close Window exit script

    antidote

      Summary

      Close Window exit script

      Description of the issue

      Experience an issue with window behavior while a script is being executed.  It is being handled differently  between FM10 and FM9.FM9 if you have a close window script step all the remaining script steps would be executed.  In a multi-file solution, the close window script will cause the script to Exit (not Halt), if the window is the last window related to that file. The parent script will continue execute. Therefore, all script steps and  sub-scripts are not executing below the Close Window. This is not consistent with Knowledge Base Article 7041 which acknowledges a change in behavior from FM9 to FM10, but states that if the current window is not available the script will continue to run on the active window. There is an easy work around which is to replace all the Close Windows with Adjust Window[Hide]  Tim 

        • 1. Re: Close Window exit script
          TSGal

          antidote:

           

          This is expected behavior.

           

          If you close the file where the script initiated, the script will stop and the Exit script will execute (if checked).  To keep the script running to completion, the database file must be open, so hiding is a workaround.  If you need it closed, make that the last script step.

           

          TSGal

          FileMaker, Inc. 

          • 2. Re: Close Window exit script
            antidote
              

            It maybe expected behavior, but it is not document in Tech Info article.  Since the behavior is not consistent with FM9 or prior and it is not document then it should not be expected behavior.  Can you please have someone revise the tech info article? I think that would be helpful to others.

             

            It certainly was not my expectation when getting that phone call from a client.

             

            Tim