I've tried to find the standard script for a portal button to go to layout for the related record in that row.
I've succeeded in going to the layout mentioned in the row but the layout doesn't have the data from that row.
I've got an Employee layout that lists their related Contracts in a portal in reverse creation order and a button
on each portal row. The row lists type of Contract, start date, end date, and the button.