Start a Report/Dataport/Codeunit with a external program

kszymanskikszymanski Member Posts: 42
edited 2001-02-19 in Navision Financials
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.
--
Kai Szymanski
Abt. eBusiness
D. Schuricht GmbH & Co. KG

Comments

  • SimonWSimonW Member Posts: 77
    Not with the present version it isn't.
    Thought:
    Use a separate "new order queue table" which a separate process could monitor
  • SkeeveSkeeve Member Posts: 33
    Or use a standalone Client that in a OnTimer Trigger "polls" the directory for new files.


    --
    Skeeve
    Navision Developer
  • mfabianmfabian Member Posts: 187
    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.

    Marcus
    With best regards from Switzerland

    Marcus Fabian
Sign In or Register to comment.