I've this code in Nav 2013:
(RecFile = Recordset FILE)
RecFile.RESET;
recFile.SETCURRENTKEY(Path,"Is a file",Name);
recFile.SETRANGE("Is a file",TRUE);
recFile.SETRANGE(Path,'C:\TEST;
IF recFile.FINDSET THEN REPEAT
ETC..
But when execute page no file was found.
There is a problem with Nav 2013?
This code work great in Nav 2009 R2..
0
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com
I faced the same problem and solved forcing to look in a different path before the search I wanted to perform in order to update the table.
There is a way to list all file in a folder.. I think..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com
You need to either manually upl;oad the files to server or write code to upload the files from user machine to server.
Or try thegunzo's suggestion.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Target is read all files in that folder with filename start with customer*.txt but I can't know before wich file found.
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com