Handling several Local files in RTC without user interaction

Storm
Member Posts: 27
I was searching around after How to handle Local files in RTC without user interaction and I found this:
http://blogs.msdn.com/b/nav/archive/2010/10/05/magicpath-downloadfromstream-and-uploadintostream-without-a-dialog-box.aspx
This was (almost) completely what I was looking for :-) But what if you don't know the exact filename(s) on the file(s)? For example if you want to handle all the files in a specified folder (one file at a time, and only files (not other folders)). In the Classic client you would use the File record, but how do you do it from RTC?
Thanks.
This Code gives the user a window where he/she needs to pick the file that needs to be handled.
http://blogs.msdn.com/b/nav/archive/2010/10/05/magicpath-downloadfromstream-and-uploadintostream-without-a-dialog-box.aspx
This was (almost) completely what I was looking for :-) But what if you don't know the exact filename(s) on the file(s)? For example if you want to handle all the files in a specified folder (one file at a time, and only files (not other folders)). In the Classic client you would use the File record, but how do you do it from RTC?
Thanks.
This Code gives the user a window where he/she needs to pick the file that needs to be handled.
IF UPLOAD( WindowBarText, "Import File From this folder", 'csv File *.csv| *.csv', ClientFileName, ServiceLayerFileName) THEN BEGIN Blablabla end;
0
Comments
-
Hi,
we are using the .NET datatype in this case.
You can translate this page http://blogs.msdn.com/b/german_nav_developer/archive/2010/12/17/nav-2009-r2-mit-dem-dotnet-datentyp-die-tabelle-file-ersetzen.aspx
With kind regards
mik0
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