Converting from Option to Enum in Business Central

twimber2@gmail.com
Member Posts: 15
Hello All!
i have a problem and i'm not certain that i can get around it. I know that when the Option Type fields in Business Central were, well, still Option fields that we could not extend those options with additional values. That being said, we could still rename the captions. Now that everything is an Enum for the most part, i'm realizing that i cannot change the captions of those Enums, unless i am mistaken. Take the example below:
I have a customer that changed the Option values in NAV 2018 to , Inactive, Credit Hold, and Invoice. When they moved to Business Central, i could not find any way to accomplish this other than to change the caption on the customer card, which i know is not best practice. That being said, is there any way to accomplish this whatsoever in version 17?
modify(Blocked) { OptionCaption = ' ,Inactive, Credit Hold, Invoice'; }
in Version 17 (and possibly 16), the Blocked field on the Customer Table is an enum...so I cannot change the captions. Is there another way to do this? I know i could use a combination of creating new enums via an extension, and using valuesallowed = to only allow my new ones, but then i would have to reprogram everywhere in the system to use these instead of the default values.
I could also create my own enum on the table, and have validation in place where if they select one of the enum's, it updates the standard blocked field to be a matching value.
Is there anything i am missing? Thanks.
i have a problem and i'm not certain that i can get around it. I know that when the Option Type fields in Business Central were, well, still Option fields that we could not extend those options with additional values. That being said, we could still rename the captions. Now that everything is an Enum for the most part, i'm realizing that i cannot change the captions of those Enums, unless i am mistaken. Take the example below:
I have a customer that changed the Option values in NAV 2018 to , Inactive, Credit Hold, and Invoice. When they moved to Business Central, i could not find any way to accomplish this other than to change the caption on the customer card, which i know is not best practice. That being said, is there any way to accomplish this whatsoever in version 17?
modify(Blocked) { OptionCaption = ' ,Inactive, Credit Hold, Invoice'; }
in Version 17 (and possibly 16), the Blocked field on the Customer Table is an enum...so I cannot change the captions. Is there another way to do this? I know i could use a combination of creating new enums via an extension, and using valuesallowed = to only allow my new ones, but then i would have to reprogram everywhere in the system to use these instead of the default values.
I could also create my own enum on the table, and have validation in place where if they select one of the enum's, it updates the standard blocked field to be a matching value.
Is there anything i am missing? Thanks.
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions