5 Replies Latest reply on Apr 4, 2010 7:44 PM by sly_1

    drop down list as navigation



      drop down list as navigation




      I want to use a drop down list for navigating through all my layouts instead of having 15 buttons on every layout.


      I have a list of all my layouts

      i just cant seem to figure out how to use the drop down for navigating.


      Anyhelp would be verry appreciated.





        • 1. Re: drop down list as navigation



          Although very much a newbie to FM, I would think that you could script it from the field that hosts the dropdown list.


          Make a script with a bunch of If functions to run OnObjectModify on that field to direct the user to the layout you want.  Then, when they select an item from the list the script should run and take them there.


          I just tried it on an old file and it seems to work.

          • 2. Re: drop down list as navigation

            OnObjectModify requires FileMaker 10 or later, just to clarify.


            Your script doesn't need any "If" statements, you can simply tell it to go to a layout by calculation, and in the calculation specify the field with the drop-down list of layout names.

            • 3. Re: drop down list as navigation

              Or, with FMPA, create custom menus for navigation.



              • 4. Re: drop down list as navigation

                I did it this way (with help from experts on this forum):

                1) Name your layouts the same as the choices in the pull down list/pop up menu.(or make the choices match the names of the layouts)

                2) Write this script:

                    Set Variable[$Layout; Value:Table_Name::Name_of_FIELD_with_the_value_list]

                    Go to Layout [$Layout]

                3) Attach the script to the field with the value list using an OnObjectModify script trigger.


                There are probably slicker ways to giterdone, but it worked for me...

                And this is asuming you are using at least FMPver10

                • 5. Re: drop down list as navigation

                  onobject modify worked perfectly