Access local files with RTC

Ploeg
Member Posts: 70
Hello guru's!
To import a XML-file with a XMLPort we use codeunit Common Dialog Management to select a file.
When we run the codeunit in classic there is no problem importing the file which we store on my desktop. But when I run the codeunit in the RTC, the import fails because it can't find the specified path. I understand that the RTC tries to access the given path in its own environment: the service tier.
So the classic client accesses the local machine -> C:\Users\BlaBlah\ImportFile.xml but the RTC tries to access the service tier -> C:\Users\BlaBlah\ImportFile.xml
Stupid RTC. Y U NOT use local settings?!
My question: how can I make the RTC to use my local file path instead of the service tier file path?
To import a XML-file with a XMLPort we use codeunit Common Dialog Management to select a file.
When we run the codeunit in classic there is no problem importing the file which we store on my desktop. But when I run the codeunit in the RTC, the import fails because it can't find the specified path. I understand that the RTC tries to access the given path in its own environment: the service tier.
So the classic client accesses the local machine -> C:\Users\BlaBlah\ImportFile.xml but the RTC tries to access the service tier -> C:\Users\BlaBlah\ImportFile.xml
Stupid RTC. Y U NOT use local settings?!
My question: how can I make the RTC to use my local file path instead of the service tier file path?
0
Answers
-
you can check the codeunit 419 3-Tier Automation Mgt.
I haven't used this myself so far but it seems to do what is needed.0 -
Check Report Import Profiles - 91720
-
If you are in NAV 2009 R2 you could try with .NET Interop.
take a look to this:
http://blogs.msdn.com/b/nav/archive/201 ... 09-r2.aspx~Rik~
It works as expected... More or Less...0 -
Thanks for all the replies. I just had some time to look at this issue again.
I stole the code from Report Import Profiles (9172), just like Mohana said. It works like a charm.
The function UPLOAD transfers the local file to a tmp-folder on the service tier, from there I can import it. NICE!0 -
Ploeg wrote:Thanks for all the replies. I just had some time to look at this issue again.
I stole the code from Report Import Profiles (9172), just like Mohana said. It works like a charm.
The function UPLOAD transfers the local file to a tmp-folder on the service tier, from there I can import it. NICE!
Great :thumbsup:0 -
Ploeg wrote:Thanks for all the replies. I just had some time to look at this issue again.
I stole the code from Report Import Profiles (9172), just like Mohana said. It works like a charm.
The function UPLOAD transfers the local file to a tmp-folder on the service tier, from there I can import it. NICE!
Nice solution thanks Mohana and Ploeg for sharing.~Rik~
It works as expected... More or Less...0
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