Lookup to Item Turnover Lines

david.weeks
Member Posts: 96
Hello All
Within standard Navision item card, within menu, there is an option to view Turnover within statistics.
How do you call this if you are using a lookup button on a field?
i.e. In code?
This is strange because the source of the Form 354 is date.
Ideas?
Thanks
Within standard Navision item card, within menu, there is an option to view Turnover within statistics.
How do you call this if you are using a lookup button on a field?
i.e. In code?
This is strange because the source of the Form 354 is date.
Ideas?
Thanks
0
Comments
-
Hello All,
Further to this, I am trying various methods and am now getting this message:
"Copying all filters at once can only be done between records belonging to the same table
Date <- Item
Copy record filters one at a time."
Any ideas on what I need to do to copy filters one at a time within code for the lookup of the text box.
Currently I am using the following that gives me the above message:
CLEAR(GfrmItemTurnover);
GrecItem.SETFILTER("No.", Rec."No.");
GfrmItemTurnover.SETTABLEVIEW(GrecItem);
GfrmItemTurnover.SETRECORD(GrecItem);
GfrmItemTurnover.RUNMODAL;
Thanks0 -
maybe i misiing the point but i have an Item Turnover report in the Inventory section. Couldn't you just call the report & not use the statistics part?0
-
Hi,
Unfortunately, I need to pass in the item number to the item turnover form.
If I just call the report, no data appears.
I am out of ideas really.
Thanks anyway0 -
The Item Turnover form (number 158) has the Item table as its source table. You should be able to use SetRecord. I think you are looking at the Item Turnover Lines form (number 354), which is a subform on the Item Turn over form.
<edit>ok so I read your initial question again and you ARE using the subform. Use the actual form and try again. Your code with the SETRECORD method should work. btw, comment out the SETTABLEVIEW line, that's not necessary</edit>0 -
Hi "DenSter"
Thank you very much.
How did I miss that? I can't believe it.
Thanks again
Cheers0
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