Alt-Search Field Diff Table?

Savatage
Member Posts: 7,142
In the Item Table I've changed the Atl-Search Field Property of "No." to
"Item UPC/EAN Number". "Item UPC/EAN Number" is a field on the item table that holds the item's UPC Code. When I enter and Item# or scan in a upc code on the sales order or credit memo all works just fine!!
Sometimes an item can have two upc codes (for whatever reason) but have the same item #. So I've used the item Varient table to hold all possible UPC codes for an item.
Now I can't simply change the Alt Search Field of the Item "No." to "Item Varient"."Item UPC/EAN Number" which would solve my problem.
I would like to scan in whatever upc code - have it search the Item Varient Table and if it finds a matching upc to enter the correct item#.
just as the Alt-Search Field Does now.
Before I being I was wondering if there are any good suggestions out there.
"Item UPC/EAN Number". "Item UPC/EAN Number" is a field on the item table that holds the item's UPC Code. When I enter and Item# or scan in a upc code on the sales order or credit memo all works just fine!!
Sometimes an item can have two upc codes (for whatever reason) but have the same item #. So I've used the item Varient table to hold all possible UPC codes for an item.
Now I can't simply change the Alt Search Field of the Item "No." to "Item Varient"."Item UPC/EAN Number" which would solve my problem.
I would like to scan in whatever upc code - have it search the Item Varient Table and if it finds a matching upc to enter the correct item#.
just as the Alt-Search Field Does now.
Before I being I was wondering if there are any good suggestions out there.
0
Comments
-
two options.
1. Create a new field where the users will enter the UPC code.
On validate of this field. add code find the itemvariant record and then validate No. field.
2. Change the property ValidateTableRelation to no.
On validate of No. field add code that looks similar to this.IF "No." = '' THEN EXIT; IF Type <> Type::" " THEN Quantity := TempSalesLine.Quantity; //Start Mod if type = Type::Item then begin ItemVariant.Setrange("Variant Code","No."); if ItemVariant.find('-') then "no." := ItemVariant."Item No." end; //End Mod "System-Created Entry" := TempSalesLine."System-Created Entry";
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