Selecting a portal record when layout called from script
I am calling a layout with a script, the called layout has a portal on a form.
When the layout is called, the cursor lands on one of the portal records, which is what I want.
How would I actually "select" the record on the portal with the script, "click on the record" when I enter the layout. When the record is "selected" a corresponding photo is shown on the form. Currently the photo does not show until I click on the portal record.