One thing to check is that the button in Layout Mode fits well within the portal row's height.
The button is attached to the field that contains the invoice number in the portal. That field is contained within the portal boundaries, as all the other invoice numbers do show up.
If you have this relationship:
And you use GTRR performed from a button click inside the portal row of the portal to PortalTO, GTRR brings up a found set of all the records that are related to the current record in the LayoutTO, not just the PortalTO record that had its button clicked.
But the record of that found set on the specified target layout that is now the current record, should be the record that you clicked in the portal row.
If that record is not the current record, something has interfered--a common culprit is a script trigger performed script as the change in layouts that the GTRR causes will trip any number of script tirggers if they have been set up to perform scripts.
This is a place where FileMaker Advanced can save you a lot of time as you could enable the script debugger, then click the button and step through the script to see if any trigger controlled scripts popup and interrupt your script and also to see at what point the expected portal record loses the focus needed in order for this to work.
Thanks Phil - nailed it!
I didn't consider using the Script Debugger since my button was "working" and it was a single action button (GTRR).
Great lesson on how to use the resources already built into the system.
I had forgotten a little feature I added that made it so when that layout was entered, the last record was already showing. Palm smack to forehead.
Also, please remember to put your Adventures Link in your replies. I found (and liked) your page after out of curiosity I blew up your Caulkins Consulting folder icon on your avatar.
On first look, it looks like Adventures in FileMaking 1 and Adventures in FileMaking 2 are going to be a great learning aid. I will be showing my appreciation for those great tools later tonight via Paypal. Thank you so much.