3 Replies Latest reply on Jul 6, 2015 11:57 AM by TSGal

    Go to Layout Number by calculation not working

    jakes

      Summary

      Go to Layout Number by calculation not working

      Product

      FileMaker Pro

      Version

      14

      Operating system version

      Windows 8.1

      Description of the issue

      If I set a Global variable in a script
      Get (LayoutNumber)
      This part works as I can view the layout number in data viewer
      In a new script: The script wont go to Layout Number By Calculation (Global Variable)
      It works for get (LayoutName)
      and Go  to Layout Name by calculation to that global variable.

      Steps to reproduce the problem

      On a List view layout, add a "View" button with a script step
      Set Global variable: Get(LayoutNumber)
      go to layout: select any layout

      Create another button "Return" Single script step
      Go to layout by calculation: Globalvariable

      Expected result

      You should be taken back to the original layout

      Actual result

      Nothing happens, you stay on the layout you are on

        • 1. Re: Go to Layout Number by calculation not working
          TSGal

          johndoe:

          Thank you for your post.

          I am unable to replicate the issue.  This is what I have done:

          1. Using FileMaker Pro 14.0.1 under Windows 8.1, I opened the built-in Contacts solution.

          2. I created the first script "GRAB LAYOUT NUMBER"
               Set Variable [ $$layout ; Value: Get ( LayoutNumber ) ]
               Show Custom Dialog [ $$layout ; "TEST" ]

          3. I created the second script "GO TO ORIGINAL LAYOUT"
               Go to Layout [ $$layout ]

          4. From the "Contacts Details" layout, I executed the script "GRAB LAYOUT NUMBER", and a dialog box shows up with "4" as the Title.  I clicked OK.

          5. I then went to the last layout "Contact Details | Web", executed the script "GO TO ORIGINAL LAYOUT", and I'm back at the "Contacts Details" layout.

          Let me know what I'm doing differently than you so I can replicate the issue.

          TSGal
          FileMaker, Inc.

          • 2. Re: Go to Layout Number by calculation not working
            jakes

            Please see attached file from Contacts template

            If you click on the view button in the listview and try return, it won't return.

            It will work if you run this in filemaker 13

            • 3. Re: Go to Layout Number by calculation not working
              TSGal

              johndoe:

              What is the link for your Contacts template?

              Using my example, if I run "GRAB LAYOUT NUMBER" for the Contact Details layout, I get the same "4" window.  When I click on the button ContactList, it takes me to the "Contacts" layout.  When I execute the "GO TO ORIGINAL LAYOUT" script, I am returned to the "Contacts Details" layout.

              TSGal
              FileMaker, Inc.