Hello,
I know there have been discussions regarding tab order in a portal and I've written a script which solves that problem. Here is the script.
FMPro 16 Advanced
If [Get(TriggerKeystroke)=Char(9)]
Set Variable [$Row; Value: Get(ActivePortalRowNumber)]
Go to Portal Row [Select:Off; With Dialog:Off; $Row+1]
Exit Script [Text Result: ]
End If
It works find... if I don't have a tab order on the layout at all. With a tab order on the layout for those entry fields outside the portal the tabbing inside the portal goes to the next row but the wrong field.
Is there a way to have a tab order on the layout and allow data entry in the portal tabbing 'down' the row on the same field?
Thank you for your time.
Change your exit Script step to read:
Exit Script [False]
This causes the "triggering event" (the keystroke) to not be processed. What happens now is that your script takes the cursor to where you tell the script to put it, but then the keystroke is processed and that moves the cursor from the position left by the script.
Look up "setting up script Triggers" in FIleMaker help to learn more about triggers and which can benefit from this use of Exit Script.