NetTalk Central

Author Topic: Possible dictionary validation bug?  (Read 2653 times)

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Possible dictionary validation bug?
« on: December 06, 2011, 04:10:54 PM »
I just updated my dictionary and also updated to 6.07.

I am getting the error "Wrong number of parameters" when compiling. The dictionary validation is pretty extensive. Have I hit a size limit or something? BTW This table was copied from another dictionary and there were no problems in that application.

[Incidentally just too out validation and recompiled and error went away]

(Screenshots attached for clarity)

ValidateValue::Too:ToothNumber  Routine
  ! Automatic Dictionary Validation
    If InList(clip(Too:ToothNumber) ,'101','102','103','104','105','106','107','108','109','110','111','201','202','203','204','205','206','207','208','209','210','211','301','302','303','304','305','306','307','308','309','310','311','401','402','403','404','405','406','407','408','409','410','411' ) = 0
      loc:Invalid = 'Too:ToothNumber'
      Too:ToothNumber:IsInvalid = true
      loc:Alert = clip('Tooth Number:') & ' ' & clip(p_web.site.InListText) & p_web._jsok('  101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411')
      !exit
    End
      if loc:invalid = '' then p_web.SetSessionValue('Too:ToothNumber',Too:ToothNumber).




[attachment deleted by admin]
« Last Edit: December 06, 2011, 04:19:12 PM by ambrit »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Possible dictionary validation bug?
« Reply #1 on: December 06, 2011, 09:48:22 PM »
apparently (according to the help) INLIST is limited to 25 choices - and you have 44 in the list below.
For now leave it off - you can add manual validation into the ValidateValue::Fieldname routine.
I'll investigate a switch for the template so it does this automatically - but that might not be available soon.

cheers
Bruce