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.
IF UPLOAD(
WindowBarText,
"Import File From this folder",
'csv File *.csv| *.csv',
ClientFileName,
ServiceLayerFileName)
THEN BEGIN
Blablabla
end;
Comments
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
mik