3 Replies Latest reply on Sep 9, 2014 6:48 AM by TSGal

    Script triggers not tripped when layout is deleted

    Dillik

      Summary

      Script triggers not tripped when layout is deleted

      Product

      FileMaker Pro

      Version

      13.0v3

      Operating system version

      OS X 10.7.5

      Description of the issue

      When the current layout is deleted by another user or in another window, a layout switch is performed without activating the appropriate script triggers for a layout switch.

      Steps to reproduce the problem

      In layout #1 of a database, set up the OnLayoutEnter and OnRecordLoad script triggers to perform something obvious (such as custom dialogs saying "OnLayoutEnter triggered" and "OnRecordLoad triggered," respectively). Go to another layout (say layout #2) and switch back to layout #1. Both OnLayoutEnter and OnRecordLoad should trigger (this is expected).

      Now go back to layout #2 and leave this window in Browse Mode. In a second window, enter Layout Mode and delete layout #2 (while the first window is still viewing it). When layout #2 is deleted, the first window will be kicked back to layout #1, but no script triggers will activate.

      Expected result

      When the deletion of layout #2 forces the first window to layout #1, OnLayoutEnter and OnRecordLoad should both be triggered as if the user had switched to layout #1 in a more mundane fashion.

        • 1. Re: Script triggers not tripped when layout is deleted
          TSGal

          Dillik:

          Thank you for your post.

          Only direct operations can trigger scripts.

          In the Notes section of FileMaker Pro 13 Help for OnLayoutEnter script trigger, it states, "This trigger does not activate if the layout is changed remotely."  In addition, it say "See 'Changing object data without activating script triggers' for a list of actions that do not activate this script trigger."

          The OnRecordLoad script trigger also references this same section.

          TSGal
          FileMaker, Inc.

          • 2. Re: Script triggers not tripped when layout is deleted
            Dillik

            Script triggers are explained not to launch for record data being changed by background processes (such as Replace Field Contents, or another user's modification), and it would make good sense for "if the layout is changed remotely" to likewise describe OnLayoutEnter not to be tripped if the layout is modified ("changed") in another window.

            However, involuntary navigation due to deletion-related processes does have precedent for launching script triggers: you will most certainly trip OnRecordLoad if the record you're on is deleted by another user/window and you land elsewhere. This layout behavior is inconsistent with that behavior (which one is the error? that OnRecordLoad fires or that OnLayoutEnter doesn't?).

            • 3. Re: Script triggers not tripped when layout is deleted
              TSGal

              Dillik:

              I suggest you enter this as a product suggestion into our Feature Requests web form at:

              http://www.filemaker.com/company/contact/feature_request.html

              The entries into this web form populate a database that is monitored by Product Management and Development.  Each web entry is discussed and considered for possible implementation in a future release.  Although I could copy your post and paste it into the web form, there are a couple of contact questions asked on the form that only you can answer.

              TSGal
              FileMaker, Inc.