I have a code field and my client requires an error if anything but an alpha character is entered. Does anybody have any experience or idea how to approach this? Thanks for the help.
Question to MVP... how did you know to specify AZaz? Where did you get that information? I tried that property but didn't know what values to supply it with.
If you go into the properties of the Form Textbox or the table's field, you'll see CharAllowed in the list. F1 in that field brings up the info:
If you want users to only enter uppercase letters in this field, enter AZ. This ensures that only uppercase characters in the range of A-Z are accepted. If you want both uppercase and lowercase characters, leave this value blank.
You can specify multiple ranges of characters by entering the parameters in pairs. For example, a value of admpzz indicates that only the following characters are accepted: a, b, c, d, m, n, o, p, and z. If you only want to allow a single character, then enter that character twice to specify a starting and ending range.
For text boxes, you can use this property to further limit the characters allowed, based on the field's setting.
The setting for the text box and the field is checked during validation.
I did the same but F1 didn't come up with the same help text for me. Is there something else I need to do get that same help text as you?
If you're using a version that isn't NAV2009, F1 in field properties often just drops you at the generic "Welcome to Microsoft Dynamics NAV Online Help". But if that's the case, this thread, while still accurate, should live over there.
Open the Help menu, and go to C/SIDE reference. Search tab, type 'CharAllowed' and search. There be the help text you seek.
Answers
Char is your friend in this case, most likely.
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
:thumbsup:
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
enter AZaz
http://www.BiloBeauty.com
http://www.autismspeaks.org
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
http://www.BiloBeauty.com
http://www.autismspeaks.org
Question to MVP... how did you know to specify AZaz? Where did you get that information? I tried that property but didn't know what values to supply it with.
I've never had to use it, so I looked it up also.
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
the help says AZ
so I threw in the lowercase az to cover my bases
http://www.BiloBeauty.com
http://www.autismspeaks.org
If you're using a version that isn't NAV2009, F1 in field properties often just drops you at the generic "Welcome to Microsoft Dynamics NAV Online Help". But if that's the case, this thread, while still accurate, should live over there.
Open the Help menu, and go to C/SIDE reference. Search tab, type 'CharAllowed' and search. There be the help text you seek.
CEO, Spare Brained Ideas, Göteborg, Sweden
New (April 2021) Getting Started with Microsoft Dynamics 365 Business Central Book Available: "Your First 20 Hours with Business Central"
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!