Hi. I am importing sales header and sales line from XL into Navision.
The thing is the XL only has "Sell to customer No." field, an what I want to do is validate it, in order to let Navision check and complete all other fields acording to the customer No..
I have adde code in the OnAfterImport that does this SalesHeader.VALIDATE("sell-to Customer No.")
and now the dataport runs, but it does not actually import any records, even though AutoSave is set to YES. :?
So... SOMEONE HELP ME, PLEASE !!!!
"Simplicity is the ultimate sophistication."
Leonardo DaVinci
0
Comments
When I design dataports for importing I always have
AutoSave,AutoUpdate, and AutoReplace set to NO.
Insert and Modify are then set with code on the OnAfterImport trigger along with any Validation, Checks and assignments.
My problem was with the Navision instalation(or the database). If I close and reopen Navision, for some unknown reason, the dataport works just like it should...
Took some time to figger that out
Leonardo DaVinci
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
But when you run the dataport from the object designer, it will.
This let you test the dataport while designing, without any records being created. After the development, you need to run the dataport from the object designer.
I was running the dataport from design mode.
Thanx a lot.
Leonardo DaVinci