Query for on timer trigger

amit
Member Posts: 7
Dear
IF we have to execute certain event after some interval of time in an application then please tell me at which object we should have to write code at on Timer trigger.
WR
Amit
India
IF we have to execute certain event after some interval of time in an application then please tell me at which object we should have to write code at on Timer trigger.
WR
Amit
India
Amit ( MCA)
Navision Technical Consultant
India
Navision Technical Consultant
India
0
Comments
-
I think I understand your question.
I think you could try the Main Menu form. This form is (almost) always open.
But better is to install a NAS (navision appliation server) and execute the code using this "tool"."Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."0 -
Hi,
I would not recommend you to use the OnTimer Trigger because it eats up a lot of system resources and causes your system to be dead slow. I would recommend to create a form and have two button like Start service and Stop service, when start service is started run the required code in ONTimer and when done stop the service, its a efficient way of doing.
Thanks
Best regards
Suresh
NY.0 -
Although I fully agree with Sbhat there are ways to use the ontimer trigger and not slow down your system.
1.) Set the ontimerinterval to a high value.
2.) Only run code in the ontimer if it's absolutely necessary.
3.) Be very, very, very sure your code is optimal conserning performance.
So see a sample of of correct working ontimer trigger take a look at the multiple subform sample in the download section of mibuso.
http://www.mibuso.com/dlinfo.asp?FileID=290"Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."0 -
Thanx for ur valuable comments on my query ,
well what Mr sbhat has said is somehow correct in some cases
but i don't think that this method will be fruitfull in my case .as for eg. if cleint wants a functionality that at perticular time let say 12:00PM some entries should be updated or post ...
then in this case we would not supposed that user will start the services and stop after completion of service. as if he/she forget to start the services then ??????
So we should have to do something which should be done automatically without the intervention of any user
if u have any more suggestion please write to me ..
Thanx
WRAmit ( MCA)
Navision Technical Consultant
India0
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