About commas in an OptionString

poppins
Member Posts: 647
Hi everyone,
Sometimes in an OptionString we have something like that:
Thanks in advance
Sometimes in an OptionString we have something like that:
,Payment,Invoice,Credit Memo,Finance Charge Memo,Reminder,Refund,,,,,Bank Reverse,Bank Charge,Loan Pay Out,Loan Pay BackWhat do those successive commas mean?
Thanks in advance

0
Comments
-
poppins wrote:Hi everyone,
Sometimes in an OptionString we have something like that:,Payment,Invoice,Credit Memo,Finance Charge Memo,Reminder,Refund,,,,,Bank Reverse,Bank Charge,Loan Pay Out,Loan Pay Back
What do those successive commas mean?
Thanks in advance
It is used for future use. So if in the future someone decides they need an extra option, there's space before "Bank Reverse" in this case.
It's because an option is an integer. Payment equals 1 because it's after the first comma.
Invoice equals 2.
When you would insert a new type before invoice, invoice would now be 3. And this means trouble... Never do that! That's why there are those comma's.
Tino Ruijs
Microsoft Dynamics NAV specialist0 -
tinoruijs wrote:It is used for future use. So if in the future someone decides they need an extra option, there's space before "Bank Reverse" in this case.
It's because an option is an integer. Payment equals 1 because it's after the first comma.
Invoice equals 2.
When you would insert a new type before invoice, invoice would now be 3. And this means trouble... Never do that! That's why there are those comma's.
Why not just insert the new option in the end of the OptionString, I mean after Loan Pay Back ? Why keep space for this ?0 -
Say that the standard Microsoft option was
Quote, Order, Invoice
and you wanted to add Blanket to it. If you have
Quote, Order, Invoice,,,,,,,,,,Blanket
that leaves space for Microsoft to add additional options with you having to do any recoding when they overwrite yours. E.g. if Microsoft added Credit to the list, it would look like
Quote, Order, Invoice, Credit,,,,,,,,,Blanket
Whereas if you had put Blanket in straight after, Blanket would have been overwritten with Credit.
Hope this helps"When you eliminate the impossible, whatever remains, however improbable, must be the truth" - Sherlock Holmes
"God and developers are in a constant battle. Developments to make their applications more idiot-proof, and God to produce bigger idiots!"0 -
Because it may be a standard option field to which you have added custom choices. You need to account for the possibility that Microsoft may add choices. So when you merge your choices they remain the same.There are no bugs - only undocumented features.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
- 322 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