Easiest way to run REPORT using NAS (4.0SP3) w/o job sched.

emulsified
Member Posts: 139
I have read the How To's for NAS but don't understand how I modify or add entries to the CODEUNIT so that I can have NAS Server run a report every 30 minutes between the hours of 7:00am and 5:00pm every day.
I would rather a DATAPORT but it's my understanding I can't do that via NAS without Job Scheduler so I would like to just run a report (report will use ADO to write to outside mySQL DB) every 30 minutes between the hours of 7:00am and 5:00pm every day. I am using the Native DB so I can't just connect to a SQL server and do this and I'm not interested in the ODBC piece either.
Can anyone point me to very blunt examples showing similar implementations to what I am trying to do?
I would rather a DATAPORT but it's my understanding I can't do that via NAS without Job Scheduler so I would like to just run a report (report will use ADO to write to outside mySQL DB) every 30 minutes between the hours of 7:00am and 5:00pm every day. I am using the Native DB so I can't just connect to a SQL server and do this and I'm not interested in the ODBC piece either.
Can anyone point me to very blunt examples showing similar implementations to what I am trying to do?
Half-empy or half-full how do you view your database?
Thanks.
Thanks.
0
Comments
-
If I understand your requirement correctly you want to launch some reprt via NAS service. Below you'll find my example.
In Codeunit 1 in triggerNASHandler(ATASID : Text[260]) IF GenSetupL."Run Scheduler" THEN BEGIN GenSetupL.TESTFIELD("Scheduler Interval (H)"); CREATE(NTimer); NTimer.Interval := 1000 * 60 * 60 * GenSetupL."Scheduler Interval (H)"; NTimer.Enabled := TRUE; END;
TriggerNTimer::Timer(Milliseconds : Integer) MESSAGE(RunScheduler, FORMAT(TODAY), TIME); CalculateBonus.RUN; COMMIT; SendSMS.RUN; COMMIT; CheckSMSStatus.RUN;
You should implement the logic of checking current time in the NTimer::Timer trigger.
Hope this helps!Sincerely yours, GRIZZLY
Follow my blog at http://x-dynamics.blogspot.com0 -
I don't have Job Scheduler. Is that a requirement for your suggestion?Half-empy or half-full how do you view your database?
Thanks.0 -
Yep. If you'd have, then this task could be done by setup. In other case - it's a simple modification of 1'st CU.Sincerely yours, GRIZZLY
Follow my blog at http://x-dynamics.blogspot.com0 -
The easiest way to ask somebody else to do it0
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