So far as I know, the portal object itself cannot be entered or exited.

While you can name the portal and try to capture its focus state using
GetLayoutObjectAttribute(portal_name; "hasFocus" or "Source" or
"ContainedObjects"), an OnObjectExit script setting this value will not fire
when you move into or out of the portal. Running that script on entry from
every other enterable object on the layout would be a terribly kludgy
workaround.

I'd be happily surprised to hear that a portal is exit- and enter-able.

What are you trying to accomplish? There may be another way to get there.

John Weinshel

From:  Peter Buchanan <[email protected]>
Reply-To:  FileMaker Pro Discussions <[email protected]>
Date:  Sat, 1 Mar 2014 17:35:56 +0200
To:  <[email protected]>
Subject:  Exit portal trigger

Hi
 
Windows and FM 12 Pro.
 
Is there a script trigger that will run when a user clicks (with mouse)
anywhere outside the portal?
 
I tried OnObjectExit, but this runs each time user moves to the next portal
row, whereas I only want the script to run when he exits the portal.
 
Thanks
 
Peter
 
 


Reply via email to