AnsweredAssumed Answered

Auto-Selecting a Portal Row inside of a Slide Control

Question asked by AdamQuintero on Apr 20, 2014
Latest reply on Apr 21, 2014 by philmodjunk

Title

Auto-Selecting a Portal Row inside of a Slide Control

Post

     I am running the following script at the OnPanelSwitch trigger of a slide control with a portal on "slide 4":

     Freeze Window

          If[PatternCount(Get(TriggerCurrentPanel); "slide 3") > 0]

               Go to Portal Row [Select;First]

               Loop

                    Exit Loop If[PortalTable::portalkey = $$portalKey]

                    Go to Portal Row[Select; Next; Exit after last]

              End Loop

         End If

     I watched each step in the debugger, and the problem I am having is the focus seems to leave the portal right after the script executes it's last step. The correct row is found and selected, but after scripting ends it is no longer selected. Am I using the correct script trigger for this function? No other scripts are executing after this one at the trigger OnPanelSwitch.

Outcomes