Adjust Cost - Item Entries with Item Filter

tompynation
Member Posts: 398
I was following this solution: viewtopic.php?f=23&t=18943
But it doesnt seem to work, anyone else tried it already?
When i make all code modification mentioned in the post and then run the report with an Item Filter, it is still running for every item?
When i use the debugger and trace code i see following problem:
Report - OnPreReport()
InvtAdjmt.SetupItemFilter(Item);
So for example i set the Filter on Item No. "H305W", then when i put a breakpoint on the line InvtAdjmt.SetupItemFilter(Item);
I copy the Item to the watch and see the following:
0,,,,No,0,0,0,Profit=Price-Cost,0,FIFO,0,0,0,0,No,No,,,,0,0,0,,0,0,,0,0,0,0,,,,0,,0,0,0,No,,No,,, ,,No,,,,Never,,,0,0,,,0,00,0,00,0,No,0,0,0,0,0,,Manual,Purchase,0,,,, ,No,Make-to-Stock,,,No,,,,,,,,,,,,,No,No,No,No,No,0,0,0,0,000,0,0,0,000,0,0,0,000,0,0,0,000,0,0,0,000,0,0,,,,,0,000,0,0,0,000,0,0,,,,,,0,0,0,0,,,0,0,0,0,0,0,0,0,0,None,No,,,,,,No,,,,,,No,No,No,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,No,No,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
So this is a blank item, not the Item "H305W" :?:
So the filter will never work, why is this? Does the solution in that topic doesnt work?
But it doesnt seem to work, anyone else tried it already?
When i make all code modification mentioned in the post and then run the report with an Item Filter, it is still running for every item?
When i use the debugger and trace code i see following problem:
Report - OnPreReport()
InvtAdjmt.SetupItemFilter(Item);
So for example i set the Filter on Item No. "H305W", then when i put a breakpoint on the line InvtAdjmt.SetupItemFilter(Item);
I copy the Item to the watch and see the following:
0,,,,No,0,0,0,Profit=Price-Cost,0,FIFO,0,0,0,0,No,No,,,,0,0,0,,0,0,,0,0,0,0,,,,0,,0,0,0,No,,No,,, ,,No,,,,Never,,,0,0,,,0,00,0,00,0,No,0,0,0,0,0,,Manual,Purchase,0,,,, ,No,Make-to-Stock,,,No,,,,,,,,,,,,,No,No,No,No,No,0,0,0,0,000,0,0,0,000,0,0,0,000,0,0,0,000,0,0,0,000,0,0,,,,,0,000,0,0,0,000,0,0,,,,,,0,0,0,0,,,0,0,0,0,0,0,0,0,0,None,No,,,,,,No,,,,,,No,No,No,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,No,No,0,0,0,0,0,0,0,0,,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
So this is a blank item, not the Item "H305W" :?:
So the filter will never work, why is this? Does the solution in that topic doesnt work?
0
Answers
-
Just so you know, in version 5.0, you can filter on item numbers.
What version are you using?Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
4.0 SP3
But i got it solved, i had to to chec the 'Var' property of one of my variables0
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