Creating .txt file using Codeunit on local machine

aceX
Member Posts: 166
Hi to all, I'm trying to resolve one complicated problem, so every idea is welcome
I'm creating .txt file using codeunit which need to be created on my client's computer. But..
info:
*My client logs to the server using instance with Credential Type:NavUserPassword and using Certificate.
problem
*The destination where I like to save the file is declared in field in table. When the codeunit read destination and try to save the .txt file there, it gives message that path is not found or if destination on the server exist he actually saves the file on the server, not on my local (client's) machine.
Does any of you guys have idea how to resolve this.
Many thanks to all.
Best regards
I'm creating .txt file using codeunit which need to be created on my client's computer. But..
info:
*My client logs to the server using instance with Credential Type:NavUserPassword and using Certificate.
problem
*The destination where I like to save the file is declared in field in table. When the codeunit read destination and try to save the .txt file there, it gives message that path is not found or if destination on the server exist he actually saves the file on the server, not on my local (client's) machine.
Does any of you guys have idea how to resolve this.
Many thanks to all.
Best regards
0
Best Answer
-
Hi,
>> I suppose you're using NAV2013R2 or NAV2015 so this post is in a wrong topic (not Navision Attain) <<
In the 3Tier environment everything is happening on the service tier (= on the server) so you have two options:
- create the file on the client using DotNet variable with RunOnClient = Yes
- create the file on the server and copy it to the client (File Management codeunit, DOWNLOAD command, DotNet)
BR5
Answers
-
Hi,
>> I suppose you're using NAV2013R2 or NAV2015 so this post is in a wrong topic (not Navision Attain) <<
In the 3Tier environment everything is happening on the service tier (= on the server) so you have two options:
- create the file on the client using DotNet variable with RunOnClient = Yes
- create the file on the server and copy it to the client (File Management codeunit, DOWNLOAD command, DotNet)
BR5 -
azatoth thank you. The problem was resolved using DOWNLOAD, but your first preposition (create the file on the client using DotNet variable with RunOnClient = Yes) seems like a good solution so I will try to use it.
Thank you azatoth again.
Best Regards0
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