2 Replies Latest reply on Dec 3, 2008 1:02 PM by raybaudi

    Scripting TAB screen with portals

    GS

      Title

      Scripting TAB screen with portals

      Post

      I have two tabs with the same info in portals sorted differently.  It is intended to access a portal record by grabbing the student number.  Tab 1 has a portal sorted by last name, tab 2 has a portal sorted by number.  I want to write a script that detects which tab is selected so it can choose the right data when selecting the student.  My current script is:

       

      Set Field [AIMSJ   MenuLFN::gStudentNum; AIMSJ   MenuLFN::StudentNum]

      Go To Layout["Console"(AIM)]

      Enter Find Mode []

      Insert Calculated Result [Select; AIM::StudentNum; AIM::gStudentNum]

      Perform Find []

      Perform Script [GoToConsole"]

       

      This works fine when sorted by name.


        • 1. Re: Scripting TAB screen with portals
          TSGal

          GS:

           

          Thank you for your post.

           

          At this time, FileMaker does not have a way to determine which Tab is being used.  One way around this is to put separate buttons on each tab.  Or, perhaps using a see-through button on top of the tabs to take you to a different layout/tab.

           

          Anybody else out there with a good workaround?

           

          TSGal

          FileMaker, Inc. 

          • 2. Re: Scripting TAB screen with portals
            raybaudi
              

            Hi GS

             

            you can give to each portal a name, for example 1 and 2...

             

            Going to object 1 will go to the portal in the first tab, going to object 2 will go to the portal in the second tab...

             

            even if the field you are going into has the same name in both portals.