"File" Table
ovicash
Member Posts: 141
Does anyone know that exactly does the "File" table (2000000022).
I've exported the data from it but it seems to be empty table .
thx
I've exported the data from it but it seems to be empty table .
thx
ovidiu
Best Regards
Best Regards
0
Comments
-
That's because it's a Virtual table. It is filled at run-time by Navision, when you need the object.
Have a look at these threads for more info:
check text file existance
Virtual tablesNo support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
thx Luc :oops: :oops: :oops:
i knew it was a virtual table but i didn't find anything on forum. :oops:ovidiu
Best Regards0 -
No problem.
And welcome to the EU ;-)No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
ovicash wrote:Does anyone know that exactly does the "File" table (2000000022).
I've exported the data from it but it seems to be empty table .
thx
Lanham's EDI granule also uses this table to get EDI documents.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
This "table" by my mean doesn't contains any data. It only "read" folder according to filter done bz SETFILTER (SETRANGE) commands.0
-
It is not a table, it only acts that way. They are called virtual tables, so you can use table methods to browse. Don't know why you would not be able to export the content of a virtual table though, I'd have to try out the file one.0
-
could you guys tell me,
How to refresh the File Table in C/AL?0 -
Oneway wrote:could you guys tell me,
How to refresh the File Table in C/AL?
It seems that in Navision this is to be done by changing the range for the Path field. Got this tip on this forum, but don't know the link. Next code works for me:
// Refresh File-table: START // THIS SEEMS TO BE NECESSARY!
// Trick is to (re)set File.Path temporary to an other path
LRec_File.SETRANGE(Path,ENVIRON('Temp')); // Navision always has Temp-file
IF LRec_File.FINDFIRST THEN;
// Refresh File-table: STOP
// Now begin by setting your range
LRec_File.SETRANGE(Path,ptxt_Path);
IF LRec_File.FINDFIRST THEN BEGIN
// Your codeBohr-ing.1 -
I have a problem with this table.
I have a form of this table filter by a path and if I i create a file in this path, it doen't appear when i execute this.
how can i refresh this table to recharge it and it show me all files?
thanks0 -
I think you have to:
1 - save the filter
2 - clear the filter
3 - set the filter to the saved value
4 - update the form.
Something about the way that the virtual table is populated is a bit strange.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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


