How to change client file name to server file name

nightrod
Member Posts: 68
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.
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
-
Yes i do use that codeunit.
But i cant find a function to change the filename from client side to server side.0 -
Whatever location user selects in SaveFileDialog call is the location visible from client PC. Always. It does not matter where the file is physically stored, K:\ might some mapped network drive, but whatever the SaveFileDialog function return it is how the file is seen from the local client point of view.
If you want to copy the file to \\server1\data location you can use C419.UploadFileSilentToServerPath
Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030
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