NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: oggy on February 09, 2011, 02:00:22 AM

Title: Automatic dictionary validation don't work for me...
Post by: oggy on February 09, 2011, 02:00:22 AM
As in subject, I have form where automatic dictionary validation is set to off. But, after compiled, when inserting in this form, still got validation error on certain fields...
Using C 7.2 and Nettalk 4.53.
Regards, Ozren.
Title: Re: Automatic dictionary validation don't work for me...
Post by: Bruce on February 09, 2011, 05:58:48 AM
Hi Ozren,

it's the "automatic" part of automatic-validation you're turning off. Not the "validation" part.

Validation rules are applied when the user clicks on Save, before the record is written to disk. If you don't want to do the validation, then remove it from your dictionary. Better yet, prime your fields to default values that are valid.

The "automatic" part validates the field immediately when the user tabs off the field.

Cheers
Bruce
Title: Re: Automatic dictionary validation don't work for me...
Post by: oggy on February 09, 2011, 07:08:36 AM
Hm, thanks for answer, but... my problem is that I am not the person who can or may alter dictionary.... My head director do not want to commit any unnecessary changes on main dictionary, so, I need to prime any field that is, lets say, created badly on dictionary lever?!?
Regards, Ozren
Title: Re: Automatic dictionary validation don't work for me...
Post by: charl99 on February 10, 2011, 02:25:49 AM
Dangerous stuff, but you can probably do the following:

Search for the following in the source:   ! End of "On Insert & Update. After Validating" then omit around it, ie

  omit('TheEvilDirector')

    ! End of "On Insert & Update. After Validating"
  ! The following fields are not on the form, but need to be checked anyway.
  ! Automatic Dictionary Validation

<some code here>

  ! Start of "On Insert & Update : Form ends : before disk write"
  ! [Priority 5000]

  TheEvilDirector

I won't recommend it...

Charl
Title: Re: Automatic dictionary validation don't work for me...
Post by: oggy on February 10, 2011, 05:50:57 AM
This could work... Omiting the source code ... Thanks, I will inform you about this
Title: Re: Automatic dictionary validation don't work for me...
Post by: Bruce on February 11, 2011, 12:44:07 AM
yeah, I think priming the fields to valid values would be better.

cheers
Bruce