Error when selecting file from common dialog box using RTC

imclever1205
Member Posts: 94
Hello guys,
I am having problems in selecting an XML file from a Common dialog box in RTC.
The same thing works fine in Classic.In RTC, am having the error 'The path specified in invalid'.
Even if i hardcode the path in the code,the error persists.
Anyone has a solution to it?Please please help me out.......
I am having problems in selecting an XML file from a Common dialog box in RTC.
The same thing works fine in Classic.In RTC, am having the error 'The path specified in invalid'.
Even if i hardcode the path in the code,the error persists.
Anyone has a solution to it?Please please help me out.......
0
Comments
-
I think you are aware of this..the RTC will search for the given path in Servicetier installed system not on client system..0
-
Dear Mohanna,
I have seen your previous post on 'Access local files with RTC'.You mentioned about using report Import Profiles - 9172
Can you please help with the code? I am new to RTC. Please help0 -
navgirl980 wrote:Dear Mohanna,
I have seen your previous post on 'Access local files with RTC'.You mentioned about using report Import Profiles - 9172
Can you please help with the code? I am new to RTC. Please help
Report 9172 has code..
Did you check?0 -
Hi Mohana,
Yes, I did and I tried the code.
I used the upload function and used an instream to import the XML file.
But the connection to the server is lost each time i execute the code.0 -
Can explain us what you did?0
-
Hi,
First, I am fetching the default pathname to set in the dialog
salessetup.GET;
pathname:=COPYSTR(salessetup."Picture Directory",1,STRLEN(salessetup."Picture Directory")-1);
and then the code from Report 1972
IF ISSERVICETIER THEN
BEGIN
TempFile.CREATETEMPFILE;
FileName := TempFile.NAME;
TempFile.CLOSE;
IF UPLOAD('Import from XML File', '','XML Files (*.xml)|*.xml|All Files (*.*)|*.*','',FileName) THEN BEGIN
IFILE.OPEN(FileName);
IFILE.CREATEINSTREAM(istream);
XMLPORT.IMPORT(50002,istream);
IFILE.CLOSE;
MESSAGE('XML HAS BEEN SAVED');
END;
END;0 -
0
-
Yes, i'm importing data from an XML file using an XML port.
I need to select the XML file from a path. (which is working in Classic but returns the following error in RTC - 'The specified path is invalid'.
The default path will be fetched from Sales & Receivables Setup.
As such ,I have tried to use the code from Report 9172 Import Profiles but it results in losing connection.
Can you help?0 -
Did yoy try by adding the xmlport to menusuite directly?0
-
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
I just tried by adding XMLPort directly to MenuSuite.
But the same thing happened.I lost connection to the server.0 -
Please, can anyone help0
-
Strange..Check by adding any existing xmlports like 8003 - Product. BOM0
-
Is the code that I wrote ok?0
-
Where did you write that code?
Code is not neccessary at present..simply add the xmlport in menusuite and run it frokm RTC..Select Import and click ok..it will ask you to select the path...0 -
i tried with XMLPort 8002 Item. it is working fine and i didnt have to make use of the code from Report 9172 Import Profiles.0
-
Now try with your XMLPORT..it should work as above..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