Item Category Code filtering
ismailthesacrificer1@gmail.com
Member Posts: 76
A new "field A" field added to the Vendor table and Vendor Card will help calculate what the "Field B" for an Item needs to be that has an Item Category Code that matches the value set in the "Field C" field on the Inventory Setup. Validation will be added to ensure that a value greater than 100 cannot be entered in the "field A" field on the Vendor Card. Anytime the "field A" field on the Vendor card is updated the "field B" for all Items that have an Item Category Code that matches the "field C" on the Inventory Setup will be recalculated.
i created fields in necessary tables and pages.
i created fields in necessary tables and pages.
0
Answers
-
Hi
You did not finish your post? Where is the question?0 -
Thanks for the allenyyzhou!
my requirement was i had a "field A" in item and "field B" in vendor table and "field C" in inventory table.Anytime the "field A" field on the Vendor card is updated the "field B" for all Items that have an Item Category Code that matches the "field C" on the Inventory Setup will be recalculated.for this i tried to write code as follow
InventorySetup.GET;
Vend.GET;
item.RESET;
//item.SETRANGE("Vendor No.",Vend."No.");
IF item.FINDSET THEN
REPEAT
item.SETRANGE("Item Category Code",InventorySetup."field C" );
IF (item."Vendor No." <> "Vendor No.") AND ("Vendor No." <> '')
THEN
IF Vend.GET("Vendor No.") THEN
"field B":= vend."field B"
UNTIL Rec.NEXT = 0
but it shows wrror message and also not updated the value in item card.
Thanks in advance...0 -
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Your Item variable is filtered but no FIND occurred. Btw. your Item variable is not needed in your code.0
-
Thanks for the reply lubost!
if you don't mind would you please Elaborate...0 -
I don't know anything about your code but some hints:
1. Why Vend.GET; ? - it probably produces error, or gets always the first record
2. What is the Rec variable?
3. Why changing values in Rec without MODIFY?
4. Why changing position in Rec?
5. Where is your code located?0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
