1 Reply Latest reply on Feb 27, 2013 9:33 AM by TSGal

    Moving to second portal while maintaining active record?

    ScottBleackley

      Title

      Moving to second portal while maintaining active record?

      Post

           Moving to second portal while maintaining active record?

           one layout, 2 tabs, 1 portal in each tab to the same table.

           When I move from a row in the first tab to continue entering data in the second portal in the second tab

           I appear to loose activation of the current record.

           When I try to explicitly capture the active row number and reposition to that row I just get a dialog

           that tells me to goto for 3 of 6 instead of doing it.  Must be very simple.

           What am I doing wrong?

           Enter Brose Mode []

           Set Variable [$active portal row number; Value:Get ( ActivePortalRowNumber)]
           Go to Object [Object Name: "Tab 2"]
           Go to object [Object Name: "Portal 2"]
           Go to Portal Row [Select $active portal row number]
           Go to Field [ layout 1:Field 8]

           Any suggestions are most welcome

           Thank you

            

            

        • 1. Re: Moving to second portal while maintaining active record?
          TSGal

               Scott Bleackley:

               Thank you for your post.

               You're not too far away.  You need to assign a name to the first field in the second portal (Field 8?).  Change the script to:

               Set Variable [ $row ; Value: Get ( ActivePortalRowNumber ) ]
               Go to Object [ Object Name: "Tab 2" ]
               Go to Object [ Object Name: "Field 8" ]
               Go to Portal Row [ no dialog ; $row ]
               Go to Field [ Field 8 ]
               Halt Script

               The "Halt Script" step is included so the tab isn't evaluated after the script runs.

               Let me know if you need additional clarification.

               TSGal
               FileMaker, Inc.