Move a File after processing the file in RTC

paramb
Member Posts: 85
Hi All,
I have a requirement: My program uses an XML Port to importa data from a flat file. The client will select the file and after processing the file, the file must be moved to a new folder named 'Processed'. This can be done from classsic with ease. But when attempting to do this from RTC, It works good when the program is executed from the server and fails when executed from a client system. I am aware that RTC executes the code in the middle tier server that is why the program erroring out when executed from the client.
I would really appreciate if some one can suggest a way to get this requirement met.
I have a requirement: My program uses an XML Port to importa data from a flat file. The client will select the file and after processing the file, the file must be moved to a new folder named 'Processed'. This can be done from classsic with ease. But when attempting to do this from RTC, It works good when the program is executed from the server and fails when executed from a client system. I am aware that RTC executes the code in the middle tier server that is why the program erroring out when executed from the client.
I would really appreciate if some one can suggest a way to get this requirement met.
0
Comments
-
We need to upload the file to Servicetier machine first and then import and then download/move to processed folder..0
-
hi..
can we move file from our local to server?
I use this codeIF FILE.COPY(TEMPORARYPATH + FileName,FileFolder + FileName) THEN;
if filefolder -->\Folder Name
this one is ok... successfully copied
but how about if i want to move it to server
filefolder --> \\NAVSERVER\NAVFOLDER
this one nothing happened... copy failed0 -
You need to use UPLOAD function.
http://msdn.microsoft.com/en-in/library/dd301144.aspx
or you can google with "Uploading a File from a Client to Microsoft Dynamics NAV Server"0 -
mohana_cse06 wrote:You need to use UPLOAD function.
http://msdn.microsoft.com/en-in/library/dd301144.aspx
or you can google with "Uploading a File from a Client to Microsoft Dynamics NAV Server"
it was saidUPLOAD('Upload file','C:\','Text file(*.txt)|*.txt','Test.txt',varTest)
FailedUPLOAD('Upload file','C:\','Text file(*.txt)|*.txt','Test.txt',FileFolder +'Test.txt',);
0 -
casanova wrote:Failed
UPLOAD('Upload file','C:\','Text file(*.txt)|*.txt','Test.txt',FileFolder +'Test.txt',);
Last value is the file name in Server Machine.
What do you mean by failed? ypu should be clear if you get any error message.FileFolder +'Test.txt',0 -
i want to move file Test.txt
from C:\ to \\NAVSVR
what wrong with this code?FileFolder := '\\NAVSVR\Test.txt'; UPLOAD('Upload file','C:\Test.txt','Text file(*.txt)|*.txt','Test.txt',FileFolder);
instead of moving file
it only open dialog box0 -
Wait a second.
Can you tell me what exactly your requirement and when do you need this?
Did you try by giving server path here instead of //NAVSERVER
like
FileFolder := 'C:\Test.txt';0 -
mohana_cse06 wrote:Wait a second.
Can you tell me what exactly your requirement and when do you need this?
Did you try by giving server path here instead of //NAVSERVER
like
FileFolder := 'C:\Test.txt';
yes i already done that
anyway I use file.copy now can works
no need using upload function
thanks anyway for your help mohana0
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