1 Reply Latest reply on Sep 16, 2009 9:56 AM by TSGal

    Layout Selection

    anicolais

      Title

      Layout Selection

      Post

      Is there a way to make a layout slection tool just like on the sidebar of IWP (Dropdown List) but actually on the layout?

       

      Filemaker 9 Pro Advanced

       

      Thanks!

        • 1. Re: Layout Selection
          TSGal

          anicolais:

           

          Thank you for your post.

           

          Yes, you can make a layout selection tool, and with FileMaker Pro 10, you can create a script trigger that automatically takes you to the layout.  In FileMaker Pro 9, since script triggers are not available, you will need to create a button that switches you to the layout.

           

          First, you need to create a value list with your Layout names and/or numbers.  This can be accomplished by either entering the names of the layouts into a value list, or putting the names of the layouts into a separate table and then using the value list to reference the values in that table.

           

          If you have a lot of layouts, you may want to consider writing a script that copies the name of each layout and puts it into the table.  For example:

           

          Set Error Capture [ On ]

          Set Variable [ $counter ; Value: 1 ]

          Loop

             Go to Layout [ <Layout Number by calculation> $counter ]

             If [ Get ( LastError ) > 0 ]

                Exit Loop

             End If

             Set Variable [ $layout ; Get ( LayoutName ) ] 

             Go to Layout [ <layout with value list table information> ]

             Set Field [ Layout ; $layout ]

             Set Variable [ $counter ; $counter + 1 ]

          End Loop

          Set Error Capture [ Off ]

           

          -----

           

          Now that all of your layout names are in this new table, create a value list that uses values from these fields.  You can then specify a global field on a layout as a pop-up list, and place a button next to the field that executes a Go to Layout Name by Calculation and reference the global field.

           

          If you need clarification for any of the above steps, please let me know.

           

          TSGal

          FileMaker, Inc.