
controlling portal fields
There is a way to execute a script in response to a selection in a pop up
menu (not a list). But what really triggers this script is clicking on the
field (which is a button). A script can detect the current field and go to
another, but a field that is turned into a button won't trigger it's script
if its tabbed in to.
You could create a background script that always runs in a loop- pausing for
user input, checking the current field, etc..- this is a general approach to
getting FM to react to events that it generally can't (with out a plugin).
People have different things to say about this kind of script, and it
performance depends allot on the layout- the script usually has to perform
some thing like an exit record request or a refresh step with each loop and
this can make calculation fields and portals flash noticeably while they
reevaluate. I haven't seen this kind of script work to well and don't
suggest it unless you really need it and don't want to spring for a plugin.
Though it's not a perfect solution, I suggest creating a "tab out of portal
script", assigning it to one of the Ctrl #1-0 keys and add a comment to the
layout or help file like: "press ctrl 1 to tab out of portal".
--
C. Alex Lorda
Quote:
> Yes,
> It's me again. Just a quick thanks to everyone who's helped me so far (and
I
> hope I've been somewhat helpful ;-). Is there an easy way to control
portal
> tabbing?
> As a user goes through the layout they encounter a portal which can have
> multiple rows, but at some point this must stop. Is it possible to set up
> some kind of script that will allow them to continue on through the rest
of
> the layout?
> One possibility I was thinking about was something similar to what I asked
> before (about executing a script via a pop-up selection). But I don't know
> what kind of performance hit this will bring, as it would be run on every
> row that the user enters.
> -warner