NAVISION & detection new file

houssayen
Member Posts: 45
hi,
I have a small question about navision, I have a codeunit that can detect the presence on a text file in a directory, if I add a new file, it does not detect except that if I restart Navision.
my question is: I can improve this codeunit so that it can detect adding the new later file without reboot navision?
thanks..
I have a small question about navision, I have a codeunit that can detect the presence on a text file in a directory, if I add a new file, it does not detect except that if I restart Navision.
my question is: I can improve this codeunit so that it can detect adding the new later file without reboot navision?
thanks..
0
Comments
-
TIMER can be used.
From the C/SIDE helpTimerInterval
Use this property to tell the system when to execute code contained in the active form's OnTimer trigger.
Applies to
Forms
Settings
The default value of this property is zero (0). This means that the system will not execute code in the OnTimer trigger.
You can specify a TimerInterval value in milliseconds ranging from zero to the highest defined integer (corresponding to approx. 25 days).
Comments
When you open a form for which you have specified a TimerInterval value, the system executes the OnOpenForm trigger. A timer then starts to count the TimerInterval in milliseconds. Once the specified interval has elapsed, the system will execute the OnTimer trigger. The timer then resets to zero and the system repeats the process until you close the form.
In some cases, the TimerInterval value specified may be too short to allow the system to complete execution of the OnTimer trigger before starting the next instance of the trigger. In this case, the system notes the number of overlapping instances and executes the trigger continuously as long as necessary.
Problems with your computer's operating system can affect the absolute performance of the timer."A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."0 -
If you are using the File table to detect the files in your folder, then you have to be aware that that table has some issues. To refresh the contents, you need to set the path to another one than the one you are currently in, do a Find, then set it back to the path you want to monitor and do a Find again.0
-
Hi,
actually, I use the table of files to find the file in a Specific directory, and as you said, I need a refresh of the table
detect the new file to add, but I did not assimilate well your idea is that you can better explain how I can make this refresh?
thanks ..0 -
"Money is likewise the greatest chance and the greatest scourge of mankind."0
-
thanks , it worked....;)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