Start a Report/Dataport/Codeunit with a external program

kszymanski
Member Posts: 42
Hello,
is it possible to start a report/dataport/codeunit with an external program ?
Why i ask ?
We have a webshop running. If a customers orders something i wan't wan't to execute a small program that indicates to Navision that there is a new order in a File.
For example:
startreport 12345 ORDER001.txt
This starts Report 12345 with the Parameter ORDER001.txt. Is
this possible ? Or do i have to write a 'server tasked report/dataport/codeunit' that sits on a tcp-port waiting for incoming connection ?
Thanks for your help.
Best regards,
Kai.
is it possible to start a report/dataport/codeunit with an external program ?
Why i ask ?
We have a webshop running. If a customers orders something i wan't wan't to execute a small program that indicates to Navision that there is a new order in a File.
For example:
startreport 12345 ORDER001.txt
This starts Report 12345 with the Parameter ORDER001.txt. Is
this possible ? Or do i have to write a 'server tasked report/dataport/codeunit' that sits on a tcp-port waiting for incoming connection ?
Thanks for your help.
Best regards,
Kai.
--
Kai Szymanski
Abt. eBusiness
D. Schuricht GmbH & Co. KG
Kai Szymanski
Abt. eBusiness
D. Schuricht GmbH & Co. KG
0
Comments
-
Not with the present version it isn't.
Thought:
Use a separate "new order queue table" which a separate process could monitor0 -
Or use a standalone Client that in a OnTimer Trigger "polls" the directory for new files.
--
Skeeve
Navision Developer0 -
The answer for all current versions (< 3.0) is "No, it's not possible to trigger any Navision object from outside!".
However, I have successfully implemented the solution suggested by ...
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Skeeve:
Or use a standalone Client that in a OnTimer Trigger "polls" the directory for new files.<HR></BLOCKQUOTE>
If you can wait, this is *definitely* the right answer! I say *definitely* because even if it's not elegant ist easy to implement, cheap and reliable. I was also involved in projects where other attempts were implemented (OCX-calls from within Navision, write to a NF interface-table via ODBC etc.) but at the bottomline the good-old ascii-file always turned out to be the best choice.
MarcusWith best regards from Switzerland
Marcus Fabian0
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