Looking for something, but can't find it.
dohertyk
Member Posts: 94
Okay..
This is really going to help me out when it comes to programming something in SQL.
When writting SQL, and you want to reference something from Navision such as a drop down list that might keep track of someone's favourite colors.
Currently what I would have to do is look for 0,1,2,3... etc.
Where does Navision store the associated name. Such as "Black, Blue, Red, Green, White"
If you know what I'm talking about, can you send me back the information that I am looking for.
Thanks in advance,
Kevin
This is really going to help me out when it comes to programming something in SQL.
When writting SQL, and you want to reference something from Navision such as a drop down list that might keep track of someone's favourite colors.
Currently what I would have to do is look for 0,1,2,3... etc.
Where does Navision store the associated name. Such as "Black, Blue, Red, Green, White"
If you know what I'm talking about, can you send me back the information that I am looking for.
Thanks in advance,
Kevin
0
Answers
-
In Navision you can define a field type Option. Internaly this will be stored as an integer but the system will show the optionvalues to the enduser.0
-
Mark Brummel wrote:In Navision you can define a field type Option. Internaly this will be stored as an integer but the system will show the optionvalues to the enduser.
Hi Mark,
Thank you for the promptness of your reply. You've understood the problem, however the answer you supplied isn't what I was looking for.
Basically I recognize the Navisionism... However, I was just wondering where in Navision that actual information is stored, so that when you are constructing a SQL query, you can use the named reference and not the integer reference that I'm currently finding as being the only option to access it.
I'm sure the link must be there to use, it's just a matter of finding out how to re-create the link in SQL.
Any help would be greatly appreciated,
Kevin0 -
The actual information is stored in the object itself. So no means to find it outside of Navision.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Still, you can create new table with structure like:
Table ID, Table Name, Field ID, Field Name, Option ID, Option Caption
and use RecordRef and FieldRef to fill the table with all values (using FieldRef.OPTIONSTRING or FieldRef.OPTIONCAPTION). After that you can use the values to "translate" the integer to captions or names.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

