2 Replies Latest reply on Oct 18, 2011 7:52 PM by Jonny.d

    Sharing Filemakerpro Adv on a network



      Sharing Filemakerpro Adv on a network


      I'm hosting a filemaker advanced file on my server. I am NOT running filemaker server, just filemaker advanced on a MAC Mini Server.   I have one coworker who never logs off.  This is preventing me from making changes to scripts while he is logged on.  I've talked to him about quitting fmp when he's not using it but that is not happening.

      Is there any way I can set a time limit for a remote connection?  I know there is one if one was using IWP but I don't see that opportunity for filemaker network.

      If there is no way of shutting him down other than me quitting FMP? or is there a script I could write that would shut only his version down without quitting the file that's running on my server?


        • 1. Re: Sharing Filemakerpro Adv on a network

          You might try using this combination of scripts:

          On every layout where your client user can access the layouts and modify data, use the OnRecordCommit trigger to specify this script:

          If [Get (MultiUserState) = 2 ]
            Set Variable [$Interval ; Value 30 // specify an interval in minutes]
            Install OnTimer ["Close File Script" ; $Interval * 60 ]
          End IF

          Use File Options to run this same script when the file is opened.

          Make the "Close File Script" a single line script that closes the file. This script will run and close the file if the specified time interval counts down without the timer being reset.

          The If step will skip everything if this is you opening it on the host (function returns 1 in this case) for every client accessing the system, this script sets up a timer that runs down in 30 minutes. If they commit a record, the script will reset the timer starting it back up on a 30 minute count down.

          You can also perform this script from other scripts such as those set to perform finds or sort records if there are browsing actions you want to also serve as triggers to reset the count down.

          PS. You can also use Save A Copy as... to get a copy of the file to use for development without having to close the current hosted file.

          • 2. Re: Sharing Filemakerpro Adv on a network

            Terrific answer!  I was not aware of the "Install OnTimer function".  I'm going to try this.  I'll let you know how this works. 

            Thanks in advance.


            Jon D