Hi All,

I offer this with humility that I am (typically) late to the party of
FileMaker 7,8,9, and for many of you this is old news.

But since I did *not* find this in the Help system under AllowUserAbort()
scriptstep, I thought it was sufficiently crucial to add here. But again,
apologies ahead of time to those for whom this is "ho-hum", but as I say, it
made my day.

So I totally get the groovy thing with creating a New window for a single
record entry, especially with auto-commit turned off. I have been using it
happily, with "Halt" after the window is rendered and prominent "Canx"
(close window) and "Post" buttons that do all the fun stuff I used to have
to do with the Globals-Jamboree method (validation-prompt, abandonment, post
new record) where all three of those were handled with the same script
parameterized with the buttons and dependent upon the data entered.

But I was frustrated that I was destined to just "hope" and with training
try to get "compliance" with using the buttons provided and not just moving
to another window, or closing the current window with the "x" and so on.

Not necessary. Now I can leave it almost identical, however, start the whole
thing off with an "AllowUserAbort(Off)" script step and instead of halting
upon new window rendering, I pause (indefinetely) within a loop, and then
use script results (of the available buttons that also resume the script) to
determine when to exit that loop (and close the window).

In this way, the user can neither click the "x" to close the window, nor
travel to another window in the background until the script has ended (or I
turn AllowUserAbort back on). YaY!

I *cannot* believe that this crucial expansion of AllowUserAbort is not in
the help system prominently with links to a more robust explanation of its
effect on the whole new Multiple Windows paradigm (and its really tough
implications with Record Ownership if not handled properly). I shouldn't
have to stumble over this! (Or was I missing something obvious -- totally
possible :-) )

Thanks.

-- 
Sincerely,
Brad

Reply via email to