Hi John
I have two tables, Voyage (parent) and Ports (related records). For each voyage, user creates portal records, entering a port name and number of days in each port. A departure date (calculation field) = number of days plus arrival date. Arrival date is the departure date from the previous record in the portal. Except in first record, where user enters a date. I run a loop script to set the arrival date into each record. GTRR, go to first record, set departure date to a variable, go to next record, apply variable to arrival date field etc. I am trying to trigger the loop script when the user exits the portal, instead of having to click a button on the layout to recalc the dates. Regards Peter From: FileMaker Pro Discussions [mailto:[email protected]] On Behalf Of John Weinshel Sent: 02 March 2014 04:40 To: [email protected] Subject: Re: Exit portal trigger 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
