mibuso.com

Microsoft Business Solutions online community
It is currently Wed Jul 23, 2014 7:14 am

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: [Solved] Access local files with RTC
PostPosted: Thu Feb 16, 2012 11:18 am 
Offline

Joined: Mon Sep 26, 2011 9:40 am
Posts: 55
Location: Nijmegen
Country: Netherlands (nl)
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?


Last edited by Ploeg on Wed Feb 22, 2012 11:38 am, edited 1 time in total.

Top
 Profile E-mail  
 
 Post subject: Re: Access local files with RTC
PostPosted: Thu Feb 16, 2012 11:26 am 
Offline

Joined: Mon Sep 27, 2010 10:52 am
Posts: 65
Country: Belgium (be)
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.


Top
 Profile  
 
 Post subject: Re: Access local files with RTC
PostPosted: Thu Feb 16, 2012 11:37 am 
Online
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4573
Location: Hyderabad
Country: India (in)
Check Report Import Profiles - 9172

_________________
-Mohana
http://mibuso.com/blogs/mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav


Top
 Profile  
 
 Post subject: Re: Access local files with RTC
PostPosted: Thu Feb 16, 2012 11:40 am 
Offline

Joined: Mon Dec 20, 2010 10:25 am
Posts: 535
Location: Bergamo
Country: Italy (it)
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...


Top
 Profile E-mail  
 
 Post subject: Re: Access local files with RTC
PostPosted: Wed Feb 22, 2012 11:37 am 
Offline

Joined: Mon Sep 26, 2011 9:40 am
Posts: 55
Location: Nijmegen
Country: Netherlands (nl)
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!


Top
 Profile E-mail  
 
 Post subject: Re: Access local files with RTC
PostPosted: Wed Feb 22, 2012 11:39 am 
Online
MVP Microsoft Dynamics NAV

Joined: Tue Sep 02, 2008 8:37 am
Posts: 4573
Location: Hyderabad
Country: India (in)
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:

_________________
-Mohana
http://mibuso.com/blogs/mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav


Top
 Profile  
 
 Post subject: Re: Access local files with RTC
PostPosted: Wed Feb 22, 2012 11:46 am 
Offline

Joined: Mon Dec 20, 2010 10:25 am
Posts: 535
Location: Bergamo
Country: Italy (it)
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...


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Majestic-12 [Bot] and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: