Problem - Creation of Variants using Dataport
nodev
Member Posts: 3
Hi,
I am a rookie in Nav. Question: We have a dataimport that import excel file to Item table in Navision. After import, the dataport creates a variant for example - gender and age group.
The imports works well except that it will always prompt me to choose Yes or No in the creation of the item variants. How can I skip this part so that it will just create the variants automatically.
I have tons of data import.
thanks in advance,
nodev
I am a rookie in Nav. Question: We have a dataimport that import excel file to Item table in Navision. After import, the dataport creates a variant for example - gender and age group.
The imports works well except that it will always prompt me to choose Yes or No in the creation of the item variants. How can I skip this part so that it will just create the variants automatically.
I have tons of data import.
thanks in advance,
nodev
0
Comments
-
I don't know about everybody But I guess I need to see some of your code.
When I import New Items into the item table - I have the "Item Unit Of Measure Table" fill in the base UOM at the same time like this..IF "Item Unit Of Measure".GET(Item."No.", Item."Base Unit of Measure") THEN VALIDATE(Item."Base Unit of Measure") ELSE BEGIN "Item Unit Of Measure".Code := Item."Base Unit of Measure"; "Item Unit Of Measure"."Item No." := Item."No."; "Item Unit Of Measure"."Qty. per Unit of Measure" := 1; "Item Unit Of Measure".INSERT(TRUE); VALIDATE(Item."Base Unit of Measure"); END;
You have a similar situation .
Are you using INSERT(TRUE)?0 -
Savatage,
Thanks for the quick response. Appreciated. Here's the portion of the code that create the variants. My unit of measure code is already taken cared of.
Integer - OnPostDataItem()
itemRec.RESET;
IF itemRec.FIND('-') THEN
REPEAT
pfsControl.CreateItemVariants(itemRec);
UNTIL itemRec.NEXT = 0;
itemRec.RESET;
IF itemRec.FIND('-') THEN
REPEAT
itemRec.VALIDATE("PfsItem Status");
UNTIL itemRec.NEXT = 0;0 -
I would try setting a breakpoint somewhere right before that code, and then walking through the code to see what happens. I am not sure but it might be prompting somewhere inside the
pfsControl.CreateItemVariants(itemRec);
function. Is pfsControl an automation variable? If so the debugger might not step into that function. Good Luck!
No one loves you like the one who created you...0 -
Can you show the code of CreateItemVariants ?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
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 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