NetTalk Central

Author Topic: NT7.22 Validate value routine executed for date values before selection from cal  (Read 3005 times)

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
This bug occurred after NT7.20. The Validate Value routine is being executed for date values as soon as the user presses the calendar icon. Thus the valuation code is not being run on the date selected by the user.
I have attached a modified web1 example where I have put a validation code for the MAI:StartDate field such that the value cannot be zero. Compile and start. Press the insert button, enter a value for the name of field and then press the calendar icon to select the Start Date. The validation code is executed before the user can even select a date thus the error message will appear. Also after the user enters the name, the user clicks on the date field and then click on the calendar icon. The selected date will not put in the date field at all. For some reason the user has to enter a value into any field on the form first before the error will occur.  You can also reproduce this error by checking the "Required" box in the validation tab for the MAI:StartDate field in the MailBoxesFormControl procedure. However in my programs some date fields have complex validations for date ranges based on the other fields, thus I need to have the validation routine called only after the user selects the date, rather than just the "Required" validation fixed.

Thanks,
Rob


[attachment deleted by admin]

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Re: NT7.22 Validate value routine executed for date b4 selected from calendar
« Reply #1 on: September 06, 2013, 11:29:56 AM »
Bump.

Thanks,
Rob

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
fixed for 7.24