Auto-Selecting a Portal Row inside of a Slide Control
I am running the following script at the OnPanelSwitch trigger of a slide control with a portal on "slide 4":
If[PatternCount(Get(TriggerCurrentPanel); "slide 3") > 0]
Go to Portal Row [Select;First]
Exit Loop If[PortalTable::portalkey = $$portalKey]
Go to Portal Row[Select; Next; Exit after last]
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.