Item Card AutoCalc Field broken?

Reinhard
Member Posts: 249
Hi...
A client is accessing the item card from the sales order card. Then they search for a different item (settings: - any part of field, find as you type is Off) and when the new item record is found, the qty. on purchase, component lines, etc flowfields are not calculated. They always show zero. The control settings have autocalcfield as Yes. It normally works fine. I can NOT repeat this bug :bug: on my workstation, but others say they have seen this before also.
Thank you for taking your time to help me with this!
- Reinhard
here is the code to open the item card:
SalesInfoPaneMgt.LookupItem(Rec);
(Rec is a sales line)
which in turn ends up calling:
FORM.RUNMODAL(FORM::"Item Card",Item);
A client is accessing the item card from the sales order card. Then they search for a different item (settings: - any part of field, find as you type is Off) and when the new item record is found, the qty. on purchase, component lines, etc flowfields are not calculated. They always show zero. The control settings have autocalcfield as Yes. It normally works fine. I can NOT repeat this bug :bug: on my workstation, but others say they have seen this before also.
Thank you for taking your time to help me with this!
- Reinhard
here is the code to open the item card:
SalesInfoPaneMgt.LookupItem(Rec);
(Rec is a sales line)
which in turn ends up calling:
FORM.RUNMODAL(FORM::"Item Card",Item);
0
Answers
-
Hi Reinhard,
Check that a flowfilter is not set/being set when in the item card...the most likely suspect is the date filter.0 -
I see that dateFilter = ''..10/19/08 (sales line due date)
Hi Dave, so your instint was correct, but to be honest I am still confused what to do.
Specifically:
- how is the date filter being set? (all I see is a Item.GET(No.) statement)
- should I remove it?
- and what exactly is a flowFilter?
sorry to ask you all these questions but a couple hints are always helpful
thank you
- Reinhard0 -
Hi Reinhard,
1.This is a tricky one to track down. The function that is setting the filters is SalesInfoPaneMgt.CalcAvailability which is called because it is in the source expression for availability on the info panel. The currform.updatecontrols fires this from the onaftergetcurrrecord.
2. Should you remove? :-k - The idea (which is sound) is to show you the item picture as at the time of shipping. You could reset the filter for the item card lookup but discuss this with the customer.
3. A flowfilter is a filter that does not filter the records in the table but can be used to filter the data in the underlying table of a flowfield. i.e. you have 100 in inventory which is made up of 10 LocA1, 20 LocB1, 30 LocC1, 40 LocA2. Then a flowfilter on location filter LocA* will return a value of 50.
Hope this helps.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