microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
732 stars 243 forks source link

ValuesAllowed does not allow empty value #7580

Closed ValsorimS closed 9 months ago

ValsorimS commented 10 months ago

Please include the following with each issue:

1. Describe the bug We are converting functionality from NAV2009, where the ValuesAllowed property on the form was set to "";A;N for the Code[1] field. When I set the same property in BC22 or BC23 to '', 'A', 'N'; and I delete a value in a field, I get an error: "Value '' is not a valid value. The following values can be used: ;A;N."

2. To Reproduce Just add a field of type Code[1] to the page and set the ValuesAllowed property.

field(ValuesAllowedBug; Rec.ValuesAllowedBug)
                {
                    ToolTip = 'Specifies the value of the ValuesAllowedBug field.';
                    ValuesAllowed = '', 'A', 'N';
                }

3. Expected behavior I expect that it will be possible to delete the value in the field when there is a value '' in the ValuesAllowed.

4. Actual behavior Type A in the field and delete it. And you get an error: Value '' is not a valid value. The following values can be used: ;A;N.

5. Versions:

qutreson commented 9 months ago

Let's get the issue to a team who will fix and backport it, as this repository is only for issues related to the AL compiler in latest developer preview environment for Dynamics 365 Business Central. We suggest that you open a support case or file a bug in Collaborate, to ensure that all Business Central users benefit from your catch as soon as possible.

To open a support case, you can:

If you file the bug in Collaborate, remember to include steps to reproduce the issue, and the Business Central build number and country version you're using.