NetTalk Central

Author Topic: Automatic dictionary validation don't work for me...  (Read 4499 times)

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Automatic dictionary validation don't work for me...
« 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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Automatic dictionary validation don't work for me...
« Reply #1 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

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: Automatic dictionary validation don't work for me...
« Reply #2 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

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Automatic dictionary validation don't work for me...
« Reply #3 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

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: Automatic dictionary validation don't work for me...
« Reply #4 on: February 10, 2011, 05:50:57 AM »
This could work... Omiting the source code ... Thanks, I will inform you about this

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Automatic dictionary validation don't work for me...
« Reply #5 on: February 11, 2011, 12:44:07 AM »
yeah, I think priming the fields to valid values would be better.

cheers
Bruce