To repeat the same question I asked yesterday, what are you using for your "pop up". New Window or Show Custom Dialog?
New window. Sorry I missed your reply yesterday.
For the layout to use in new window, base it on the portal's table.
Use Go To Related Record with the new window option to open your pop up and go to the related record of the portal all in one step.
If you can add new records in your portal, you may want to do it this way in your script:
If [ Not isEmpty ( PortalTableOccurrence::ForeignKey ) ]
Go To Related Records ( ....
That way the GTRR step only happens if there is a related record.
Brilliant! Now - I need you to help me replace all the hair I pulled yesterday;) Seriously - it is amazing to have someone like you that is willing to answer all these newbie questions. Thank you so much! I'm sure we'll be talking again soon.
There are also scripting tricks that can keep that pop up "modal" so that they can't click on the main window and lose the pop up back behind it.
The key is this infinite loop:
Allow User Abort [off]
This must be used with caution. You have to place a button or a triggered script on the pop up that uses Halt Script to terminate this script after closing the pop up window, or you can be trapped in a situation where (unless you use FileMaker Advanced's Script Debugger), you may have to force quit FileMaker.
You can find examples of this trick in the Known Bugs Database.
Got modal working great, saw one of your earlier posts on that. However, not getting a new window to pop open once published to web. This had been working so I'm going to have to tinker with that next.
This isn't a technique you can use with Instant web publishing. As far as I know, there is no way to pop up any kind of additional window or custom dialog from inside the web browser. You'll need to use a different method here for that.