3 Replies Latest reply on Dec 4, 2012 11:58 AM by DavidJondreau

    Ui sep model startup when network down

    CJWatson

      I have a separation model , When the UI is opened in fmpro and the server is down or network can't connect, the fmpro takes as least 3-4 minutes to come up with a can't find file dialog then the standard choose file dialog. Will repeat this for several remote file requests.

       

      Need to check for access before Ui opens and then quit app with dialog if no network connection to server.

       

      Wrote a script to do this, but can't get it to fire before the app waits to connect.

      1.Have blank table with one layout that opens initially

      2. Set connection script trigger on first window open to check connectivity.

      3. FMPRO stalls looking for files before this script trigger fires.

       

      Any suggestions - Not good UI for users if they open the program then wait 5 minutes just to find out network down and then wait through three or four dialogs asking to find a remote file.

       

      CJ Watson

      konafiresoftware

      Kailua Kona, Hi

        • 1. Re: Ui sep model startup when network down
          wimdecorte

          Any particular reason why the users have the interface file on their machine?

           

          One way of doing it would be to have the local file use a URL to talk to the FMS XML engine and ask for a list of the available files.  Based on that you can then decide to bail out or go ahead with opening the hosted file

          • 2. Re: Ui sep model startup when network down
            CJWatson

            Thanks for your reply,

             

            This is a seperation model, so it operates best w ui on client. File contains no data, connects to server files.

             

            I have a script that verifies connection. The issue is that even when it is put in the firstwindow open

            Trigger, fm hunts for network files that have TO s, before this script fires and has a chance to exit the user gracefully.

            • 3. Re: Ui sep model startup when network down
              DavidJondreau

              If you have a TO from a related file on your relationship graph, FileMaker will attempt to connect to the related file before the first OnWindowOpen script trigger fires.

               

              One workaround is to have two 'local' files. One without any TOs, and an Open File check script. If that check passes, open the 'real' local file and closes the 'check' file.