1 Reply Latest reply on May 26, 2015 8:53 AM by TSGal

    Send event to open a snapshot conflicts with later script steps

    MichaelWiseman

      Summary

      Send event to open a snapshot conflicts with later script steps

      Product

      FileMaker Pro

      Version

      Advanced 13

      Operating system version

      Windows 7

      Description of the issue

      I am trying to open a snapshot from a script.

      When I click the snapshot, it works perfectly.
      When There are no script steps after the send event, it works perfectly, but certain steps after the send event seem to conflict with it and the snapshot doesn't open

      Steps to reproduce the problem

      set variable $time1 = get current time
      Go to layout x
      send event aaa.fmpsl
      set variable $time2=get current time
      show custom dialog time2-time1/1000

      The snapshot was made in the same layout I am set on, strictly speaking, the go to layout may not be necessary.

      Expected result

      The snapshot opens

      Actual result

      It doesn't (but it does when the dialog box is disabled).

      Workaround

      Things that don't work
      Placing a 10 second pause between the send event and the dialog box
      putting an infinite loop.
      Refreshing the window before or after the dialog box
      Placing many set variables after the send event (though just a few isn't a problem)
      Filefire launch function
      Openurl
      Using send event on a .bat file that opens the snapshot

      xfnsfnsfghhfg.png

        • 1. Re: Send event to open a snapshot conflicts with later script steps
          TSGal

          Michael Wiseman:

          Thank you for your post.

          A snapshot link opens a new instance of the database, even if the file is already open.  Do you have an OnOpenFirstWindow script trigger executing?

          What occurs if you switch to another database file, executes a script that closes the original window and then opens the snapshot?

          What is the reason for the snapshot link with the file already open?  Asked differently, can a script in the file give you the desired results?

          TSGal
          FileMaker, Inc.