No. of list option in option type

vijay_g
Member Posts: 884
hi,
How can i count total listed option in option data type?
How can i count total listed option in option data type?
0
Comments
-
Why do you want the Count?0
-
i want to show data(in report) column by option type.0
-
vijay_g wrote:i want to show data in column by option type.
Can you explain with one example?0 -
i have a field location type in location table. now i wanna show total inventory along with location type.
a location type can have multiple locations assigned.0 -
If you need it in Report, you can develop a report by Grouping on Location Type ..0
-
but the format is location type should be comes column wise.
isn't any function to count no. of option?0 -
If you need it in RTC, follow this blog
http://blogs.msdn.com/b/nav/archive/2009/08/28/building-a-matrix-report-in-microsoft-dynamics-nav-2009-sp1.aspx0 -
No i am working on classic anyway thanks.0
-
Using RecordRef and FieldRef you can get the optionstring and optioncaption strings of a field, and using some string functions you can determine the number of the options within it.
Following example will show you the options of the field "costing method" of the item table :
Variables : recref = Recordref, fref = fieldref ;recref.open(27) ; fref := recref.field(21) ; message(Fref.OPTIONSTRING) ;
0 -
i got it with recref.
thanks a lot.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