Field validation when window closes
Field validation when window closes
am 20.12.2007 15:39:43 von carla
(FM9, PC)
Is there a way of forcing FM to validate the contents of a field when
the current window closes? The validation (by calculation, using the
Scriptfire plugin) works fine when the user tries to enter data to the
field, and I've set the field to "always validate", but this doesn't
prevent the user from simply clicking on the (Windows) Close Window
button, leaving invalid data. (Ideally, I'd like simply to disable
the Close button, but I don't think FM allows me to do that.)
Any suggestions very much appreciated!
Carla.
Re: Field validation when window closes
am 20.12.2007 20:04:25 von ursus.kirk
Carla
Go into field definition, Select the field, select field options, Select tab
validation and uncheck the "Allow user to override..." checkbox. Without
going into major scripting you cannot set it to evaluate ONLy when
leaving/committing the record.
Keep well, Ursus
"Carla" schreef in bericht
news:e909dd3c-4915-4ee6-aa54-d0af663884a3@s12g2000prg.google groups.com...
> (FM9, PC)
>
> Is there a way of forcing FM to validate the contents of a field when
> the current window closes? The validation (by calculation, using the
> Scriptfire plugin) works fine when the user tries to enter data to the
> field, and I've set the field to "always validate", but this doesn't
> prevent the user from simply clicking on the (Windows) Close Window
> button, leaving invalid data. (Ideally, I'd like simply to disable
> the Close button, but I don't think FM allows me to do that.)
>
> Any suggestions very much appreciated!
>
> Carla.
Re: Field validation when window closes
am 21.12.2007 09:57:14 von carla
Ursus,
Thanks for the suggestion, but I've already unchecked this option. I
guess I must be doing something else wrong. It's not that I want the
field validated ONLY when leaving the record, but AS WELL AS, which it
isn't doing at the moment. It's pretty crucial that I don't let the
user leave bad data in the field, so if I have to get into "major
scripting", so be it. I wonder HOW major?!
Thanks again,
Carla.
On Dec 20, 7:04=A0pm, "Ursus" wrote:
> Carla
>
> Go into field definition, Select the field, select field options, Select t=
ab
> validation and uncheck the "Allow user to override..." checkbox. Without
> going into major scripting you cannot set it to evaluate ONLy when
> leaving/committing the record.
>
> Keep well, Ursus
>
> "Carla" schreef in berichtnews:e909dd3c-4915-4ee=
6-aa54-d0af663884a3@s12g2000prg.googlegroups.com...
>
>
>
> > (FM9, PC)
>
> > Is there a way of forcing FM to validate the contents of a field when
> > the current window closes? =A0The validation (by calculation, using the
> > Scriptfire plugin) works fine when the user tries to enter data to the
> > field, and I've set the field to "always validate", but this doesn't
> > prevent the user from simply clicking on the (Windows) Close Window
> > button, leaving invalid data. =A0(Ideally, I'd like simply to disable
> > the Close button, but I don't think FM allows me to do that.)
>
> > Any suggestions very much appreciated!
>
> > Carla.- Hide quoted text -
>
> - Show quoted text -
Re: Field validation when window closes
am 21.12.2007 12:26:30 von ursus.kirk
Well Carla,
If you already have set the validation when the user leaves the field I
don't see how the data in it can change between leaving the field and
committing the record. The user can not leave the record when the validation
is not met, whatever he tries. Your validation has to be correct ofcourse.
Keep well, Ursus
"Carla" schreef in bericht
news:1e12ea1a-82c0-423f-a8ba-33bbf31fd539@i72g2000hsd.google groups.com...
Ursus,
Thanks for the suggestion, but I've already unchecked this option. I
guess I must be doing something else wrong. It's not that I want the
field validated ONLY when leaving the record, but AS WELL AS, which it
isn't doing at the moment. It's pretty crucial that I don't let the
user leave bad data in the field, so if I have to get into "major
scripting", so be it. I wonder HOW major?!
Thanks again,
Carla.
On Dec 20, 7:04 pm, "Ursus" wrote:
> Carla
>
> Go into field definition, Select the field, select field options, Select
> tab
> validation and uncheck the "Allow user to override..." checkbox. Without
> going into major scripting you cannot set it to evaluate ONLy when
> leaving/committing the record.
>
> Keep well, Ursus
Re: Field validation when window closes
am 21.12.2007 23:25:44 von Helpful Harry
In article
<1e12ea1a-82c0-423f-a8ba-33bbf31fd539@i72g2000hsd.googlegroups.com>,
Carla wrote:
> Ursus,
>
> Thanks for the suggestion, but I've already unchecked this option. I
> guess I must be doing something else wrong. It's not that I want the
> field validated ONLY when leaving the record, but AS WELL AS, which it
> isn't doing at the moment. It's pretty crucial that I don't let the
> user leave bad data in the field, so if I have to get into "major
> scripting", so be it. I wonder HOW major?!
>
> Thanks again,
>
> Carla.
Unless they've reversed it in newer versions of FileMaker, the otpion
says:
Strict: Do NOT allow user to override data validation
so you would need that option turned ON (checked) so that any invalid
data will abort the close window or Quit process.
As Ursus said, your validation of course has to be correct too, which
can be tricky to get right when using the "by Calculation" option.
Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)
Re: Field validation when window closes
am 22.12.2007 15:43:39 von ursus.kirk
Harry,
They HAVE changed the wording. It now reads:
Allow user to override during data entry.
Wich in my opinion is a bit more clear, because it is a positive choice the
user has to make.
And adds two options: Validate this field:
Always
Only during data entry
Keep well, Ursus
>
> Unless they've reversed it in newer versions of FileMaker, the otpion
> says:
>
> Strict: Do NOT allow user to override data validation
>
> so you would need that option turned ON (checked) so that any invalid
> data will abort the close window or Quit process.
>
> As Ursus said, your validation of course has to be correct too, which
> can be tricky to get right when using the "by Calculation" option.
>
> Helpful Harry
> Hopefully helping harassed humans happily handle handiwork hardships ;o)
Re: Field validation when window closes
am 02.01.2008 21:23:23 von Guy
Yes, you can prevent a window from closing; this is useful for pop-up dialog
boxes so the user doesn't click on the main window and leve teh dailog box
open and behind (and then multiples).
create a sub-script : Lock dialog box (or window or whatever)
------------------
Allow User Abort [Off]
Loop
Pause/Resume Script [Indefinitely]
Beep
End Loop
--------------------
Call this scrip whenever you need it
The create an Unlock script
--------------------
Close window [name] or [current window]
Halt Script
Committ Records/Requests[]
------------------
Guy
"Ursus" wrote in message
news:476d2298$0$76283$dbd4f001@news.wanadoo.nl...
> Harry,
>
> They HAVE changed the wording. It now reads:
>
> Allow user to override during data entry.
>
> Wich in my opinion is a bit more clear, because it is a positive choice
> the user has to make.
>
> And adds two options: Validate this field:
> Always
> Only during data entry
>
> Keep well, Ursus
>
>>
>> Unless they've reversed it in newer versions of FileMaker, the otpion
>> says:
>>
>> Strict: Do NOT allow user to override data validation
>>
>> so you would need that option turned ON (checked) so that any invalid
>> data will abort the close window or Quit process.
>>
>> As Ursus said, your validation of course has to be correct too, which
>> can be tricky to get right when using the "by Calculation" option.
>>
>> Helpful Harry
>> Hopefully helping harassed humans happily handle handiwork hardships ;o)
>
>