option Value not appearing in the field

sathangai
Member Posts: 25
hi all,
In the salesline item table,i have taken the field(Excise account type, option datatype).
i have entered 8 values<a,b,c,..h>. when executing the salesorder form the value comes fine and when moving to report(Order confirmation) i got only the numbers in print(if iam choosing B it comes 2 and for D 4.......)..
Iam a newbie..
what i need to do to do for the selected option value to come in the report?
is there any code to be written?..if yes give me n i'll learn with that
iam using NAV 2009 with classic client and sqlserver....
...Thank you
In the salesline item table,i have taken the field(Excise account type, option datatype).
i have entered 8 values<a,b,c,..h>. when executing the salesorder form the value comes fine and when moving to report(Order confirmation) i got only the numbers in print(if iam choosing B it comes 2 and for D 4.......)..
Iam a newbie..
what i need to do to do for the selected option value to come in the report?
is there any code to be written?..if yes give me n i'll learn with that
iam using NAV 2009 with classic client and sqlserver....
...Thank you
0
Comments
-
perhaps this post can help..
viewtopic.php?f=23&t=83430 -
[Topic moved from 'NAV 2009' forum to 'SQL General' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi!
You should make sure your Option Field contains not only the "Option String" but also the "Option Captions" for the required Language Layers!
Further, you might look into the FORMAT command (if applicable).
Kind regards,
JörgJörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
Thanks Savatage and stryke....
let u know what happened when iam choosing by applying the changes....0 -
I have used the foll type of code.. c if it works for you... optmonth is type option with OptionString = ,January,February,March,April,May,June,July,August,September,October,November,December and intmonth is of type Integer. u can use this in pre data item trigger of report if u want to apply filter on dataitem depending on selection of option type.
CASE optmonth OF optmonth::January:intmonth:=1; optmonth::February:intmonth:=2; optmonth::March:intmonth:=3; optmonth::April:intmonth:=4; optmonth::May:intmonth:=5; optmonth::June:intmonth:=6; optmonth::July:intmonth:=7; optmonth::August:intmonth:=8; optmonth::September:intmonth:=9; optmonth::October:intmonth:=10; optmonth::November:intmonth:=11; optmonth::December:intmonth:=12; END;
0 -
sri.tech23 wrote:I have used the foll type of code.. c if it works for you... optmonth is type option with OptionString = ,January,February,March,April,May,June,July,August,September,October,November,December and intmonth is of type Integer. u can use this in pre data item trigger of report if u want to apply filter on dataitem depending on selection of option type.
CASE optmonth OF optmonth::January:intmonth:=1; optmonth::February:intmonth:=2; optmonth::March:intmonth:=3; optmonth::April:intmonth:=4; optmonth::May:intmonth:=5; optmonth::June:intmonth:=6; optmonth::July:intmonth:=7; optmonth::August:intmonth:=8; optmonth::September:intmonth:=9; optmonth::October:intmonth:=10; optmonth::November:intmonth:=11; optmonth::December:intmonth:=12; END;
This should be enough:EVALUATE(intmonth, FORMAT(optmonth, 0, '<Number>'));
Jörg A. Stryk (MVP - Dynamics NAV)
NAV/SQL Performance Optimization & Troubleshooting
STRYK System Improvement
The Blog - The Book - The Tool0 -
Thanks stryk,sritech.23,savatage........it works for me........thank you for your valuble replies....and i'll learn........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