I want to create a text file on a location that the user can choose.
using file management.savefiledialog the user can select location.
when the location is on a server drive the location is mentioned as
'K:\Data\file.txt'
the textfile is created as temporary server file.
when finished i want tod copy the temp file to the clientfilename.
the server cant find the path to 'K:'
when the filename is changed to \\server1\data\file.txt the server can find it and it works.
is there a function to change 'K:\Data\file.text' to '\\server1\data;file.txt'?
hopefully this description is clear enough.
thanks.
0
Answers
Have you tried to use functions from codeunit 419 "File Management"? Functions in this codeunit let you easily copy files between client machine and server machine.
But i cant find a function to change the filename from client side to server side.
If you want to copy the file to \\server1\data location you can use C419.UploadFileSilentToServerPath
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03