NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rupertvz on October 27, 2020, 02:58:47 AM

Title: Checkbox must be one of Y/N
Post by: rupertvz on October 27, 2020, 02:58:47 AM
Hi Guys,

I recently updated my NetTalk templates and it seems since then I am receiving "Must be one of Y/N" for most of my checkboxes in NWF.

I check and confirmed all the checkbox settings.

Only way currently to rectify is to change these field validations rules in my dictionary.

Any help will be appreciated,


NetTalk 11.45
Clarion 11 Build 13244


Title: Re: Checkbox must be one of Y/N
Post by: Bruce on October 28, 2020, 02:50:53 AM
Hi Rupert,

what are the validation rules set to in your dictionary?
what data type are you using for the field in the dictionary? (Byte, Long etc?)
What are the settings for the checkbox on the Form? What is the text you display? What are the values set to?

Cheers
Bruce
Title: Re: Checkbox must be one of Y/N
Post by: rupertvz on October 28, 2020, 03:40:15 AM
Hi Bruce,

I am using a String field, 1 char.
Yes or No (Y/N)

Kindly see attached.

Title: Re: Checkbox must be one of Y/N
Post by: rupertvz on October 28, 2020, 03:41:27 AM
Dictionary validation is Must be True or False
Title: Re: Checkbox must be one of Y/N
Post by: Ubaidullah on October 28, 2020, 03:55:35 AM
I think checkbox fields are set to 1 or 0 when checked/unchecked respectively. A Y/N string type field cannot be a checkbox unless there is a setting that allows to override this.

Regards,
Ubaidullah Nubar.
Title: Re: Checkbox must be one of Y/N
Post by: rupertvz on October 28, 2020, 04:49:06 AM
Thank you Ubaidullah,

I used checkboxes like this for many years, and this was the first problem I experienced in NetTalk.
Title: Re: Checkbox must be one of Y/N
Post by: Bruce on October 30, 2020, 06:58:59 AM
Tweak one of the shipping examples to show the effect Rupert, and post that.

cheers
Bruce