Hi experts,
i try to import a file as 'Gen. Journal Line'. It shouldn't be problem. I wan't to give over some variables in the request form.
The variable 'FileName' has the ID 1 so that it should work, but it doesn't.
NAV sais that the file couldn't be found so that I think, that the FileName wasn't given over?!
Please help......
Greatings from germany!
cosch1
0
Answers
You have to tell NAV that this is the FileName for the dataport
CurrDataport.FILENAME := FileName
Thanks a lot for answering!
I've created it as a global variable, text length 250.
Now i told "him" that he's the FileName, but the result is the same....
Have you got another idea??????
JournalLine - OnPreDataItem()
FileName2 was only a test, but it doesn't work too.....
Perhaps try for a test rename the file and put it in c:\
c:\test.txt
see if that works
http://www.BiloBeauty.com
http://www.autismspeaks.org
You should place that code on the OnPreDataport trigger
You should also use CurrDataport.IMPORT to tell the dataport if it has to import or export the data
i did it, same result..... If I only put the variable "FileName" into the request form, it works!
Did you try that one? That's what needs to be done. Before the dataport begins processing ANYTHING it has to have a filename. That processing begins when OnPreDataport finishes.
My Blog - nav.education
it sounds good, but -sorry - i don#t find the "OnPreDataport trigger"..... What's the way to find it????
I'm to stupid...... #-o
I found it!!!! It works!!!!! Many thanks to all!!!!
Greetings from germany!