3 Replies Latest reply on Aug 24, 2011 10:12 AM by philmodjunk

    Layout Navigation using Pop up?

    AmberSaundry

      Title

      Layout Navigation using Pop up?

      Post

      Hello,

      I am using FM Pro 9.  I am an intermediate using, familar with basic database building, coding, and scripting.

      I am looking to create a pop-up menu field, that will allow me to navigate between the layouts in my database.  I have multiple layouts for label contents and sizes, and instead of needing to click the layout list on the left, I'd like to insert a pop up menu at the top of my main layout to navigate to the label layouts.  Ie: select 'labels 4pp' in the pop up menu, and be instantly brought to that corresponding layout.

      I have used buttons before, and assigned 'Go to Layout' scripts to these no problem.  Is there any way to have this functionality with a pop up menu?  I cannot figure out how to assign a script to each option in the value list.

      Any help is appreciated.

      Thank you,
      Amber

        • 1. Re: Layout Navigation using Pop up?
          philmodjunk

          If you were using a newer version of FileMaker, you could use script trigger set on the pop up to perform a script that uses the value selected in the pop up to go to the specified layout. In 9, you'd need to place a button next to the pop up.

          Your script might look like this:

          Go to Layout [YourTable::PopUpField]

          It would be that simple if you use a value list of actual layout names for your pop up and then use the "Layout Name by calculation" option to specify the popupfield as shown above.

          If you don't use actual layout names in the popup, you can use a series of If-ElseIf steps to match specific values in the pop-up to different go to layout steps.

          • 2. Re: Layout Navigation using Pop up?
            AmberSaundry

            Hi Phil,

            Thanks as always for your prompt assistance!

            Good to know the functionality I was thinking is not possible in FM Pro 9.  I have successfully created the pop-up and the button works by calculation (I had the value list match the layouts so it was easier).

            We're hoping to upgrade to FM Pro 11 in the near future so I may re-look at this function then.

            Thanks again!
            Amber

            • 3. Re: Layout Navigation using Pop up?
              philmodjunk

              You can probably add that functunality to FM 9 by installing a plug in. I'd go with the button instead myself, but this is an option you can consider.