FMPRO-L Archives

October 2014, Week 4

FMPRO-L@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Patrick Castagno <[log in to unmask]>
Reply To:
FileMaker Pro Discussions <[log in to unmask]>
Date:
Tue, 28 Oct 2014 13:47:04 -0400
Content-Type:
multipart/alternative
Parts/Attachments:
text/plain (1020 bytes) , text/html (1620 bytes)
Great suggestions. Ill try this.

Thanks,

Patrick

On Tue, Oct 28, 2014 at 1:28 PM, John Wenmeekers <
[log in to unmask]> wrote:

> It's possible with native FM tools.
>
> Add a global number field, default 0. [zc_closeWindow_gn]
> Add a script along these lines:
> Prevent close window:
> If( yourTableName::zc_closeWindow_n = 0 )
> Show Custom Dialog ( yourText why user can't use the stop light )
> Halt scriptEnd If
> If( yourTableName::zc_closeWindow_n = 1 )
> Close Window ( Current Window )
> End If
> Exit script
>
> In File --> File Options
> Go to tab Script Triggers
> Link the script to "OnWindowsClose"
>
> Find a way to set the global field to 1 when needed or authorized.
> Something like a close Window button on your layout.
> Put a Set Field line in the script linked to that button that sets the zc_
> field to 1,
> call the Prevent close window script, reset the global to 0
> Or tweak the script with a variable.
>
> Hope this helps
>
> JW
>
>


-- 
Patrick Castagno
Tatnall School
Wilmington, DE
302-494-5312


ATOM RSS1 RSS2