Is there an "Option-Field-Translation-Table"?

pupricht
Member Posts: 9
Me again...
...still migrating our old interface routines (ODBC) from Navision 4.x (native database) to NAV 2009 (MSSQL).
All off the old interfaces are using the ODBC drive with the option "OptionFieldType" set to "text"
(The "Identifiers" optin is set to "a-z,A-Z,0-9,_" which explains the "additional" underlines in the following sample statements)
Therefore selecting records in the old environment from lets say the "Cust_ Ledger Entry" table may look like this:
It's the option string < ,Payment,Invoice,Credit Memo,Finance Charge Memo,Reminder,Refund> defining the mapping
Payment=1,
Invoice=2
....and so on...
The new MSSQL-Environment does not allow to choose between OptionFieldType Interger/Text.
Therefore I have to rewrite the above statement as
So far so good. Having access to the designer it's easy to find out what the integer value is.
I am wondering (remember I don't have the NAV 2009 application but only a connection via SQLNCLI) if there exists any table to "translate" option field integers into strings and/or vice versa?????
Something that would enable me to grab
Thank you
Peter
...still migrating our old interface routines (ODBC) from Navision 4.x (native database) to NAV 2009 (MSSQL).
All off the old interfaces are using the ODBC drive with the option "OptionFieldType" set to "text"
(The "Identifiers" optin is set to "a-z,A-Z,0-9,_" which explains the "additional" underlines in the following sample statements)
Therefore selecting records in the old environment from lets say the "Cust_ Ledger Entry" table may look like this:
SELECT fields FROM Cust__Ledger_Entry WHERE Document_Type = 'Invoice'
It's the option string < ,Payment,Invoice,Credit Memo,Finance Charge Memo,Reminder,Refund> defining the mapping
Payment=1,
Invoice=2
....and so on...
The new MSSQL-Environment does not allow to choose between OptionFieldType Interger/Text.
Therefore I have to rewrite the above statement as
select * from [dbo].[Cust_ Ledger Entry] where [Document Type] = 2
So far so good. Having access to the designer it's easy to find out what the integer value is.
I am wondering (remember I don't have the NAV 2009 application but only a connection via SQLNCLI) if there exists any table to "translate" option field integers into strings and/or vice versa?????
Something that would enable me to grab
select IntegerValue, TextValue from [TranslationTable] where [FieldReference] = 'Document Type'
Thank you
Peter
0
Comments
-
I think there is no table like this. But you can create it on your own by using RecRef and FieldRef. FieldRef provides function OPTIONCAPTION and you can seperate it by SELECTSTR. You just have to take care about empty and doubled option values."Money is likewise the greatest chance and the greatest scourge of mankind."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