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.
0
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
can we move file from our local to server?
I use this code
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 failed
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"
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
it was said what is vartest?
Failed
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.
Why do you have a , (comma) at the end?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
from C:\ to \\NAVSVR
what wrong with this code?
instead of moving file
it only open dialog box
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';
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
yes i already done that
anyway I use file.copy now can works
no need using upload function
thanks anyway for your help mohana