Force Record Commit Using a Timer

Version 2

     

    Script

     

    Compatibility
    Creator
    Mac OS X, Windows
    Todd Duell
    FMP 10, 11
    Formulations Pro
    Web: No
    File Type: FP7
    Server: Yes
    FileSize: ~ .67 megabytes
    http://www.formulationspro.com

    Description

    I know that every user and developer at one point or another has run into this problem; a user walked away from their computer and did not commit or exit the record they were working on and you need to have access to it. They also locked their computer so you can't walk over and exit the record for them. On top of that, FileMaker Server is not configured to ever kick them out as a result of inactivity or because you have a robot computer performing some task. Wouldn't it be nice to have FileMaker Pro's inactivity timer configurable for each user? Then you could kick out users that are frequently inactive for long periods of time (we know who you are!). The other scenario that still bugs the heck out of me is if you send the user a message to exit the record FileMaker's dialog box does not pop to the top of the user's screen. Therefore, if they have another application covering the FileMaker window they'll never see your message to exit the record. When is FileMaker going to figure out how to use the operating system's dialog box to send messages? In any event, using the new triggers with the Install OnTimer Script step you can control user interaction with the records with much better granularity, even if you don't have FileMaker Server.

     


    Code

     

    Sample Input

    Sample Output


    Developer's Notes

    See sample file for full demo and technical article.

     


    FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.