Options

Run dataport from other application

LioLio Member Posts: 10
Hello

I don't filnd something about it so I decided to write to the forum :)

I rely on You...

So, the question:

Is it possible to run dataport from other (outer) application?
If this is possible then how can I do this?

I want to export and import data without user interact in navision.

Thanks for answer.

Comments

  • Options
    RobertMoRobertMo Member Posts: 484
    This can be tricky. You cannot run dataports by using NAS (Navision App. Server).

    If you are accessing Navision with third party SW, why don't you just read/insert the tables you want? And of course be careful when inserting not to corrupt the data.
               ®obi           
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  • Options
    eromeineromein Member Posts: 589
    You could make a codeunit that exports the data and call that codeunit from the NAS.

    Or maybe you don't want to use a Navision dataport or other Navision object. You could maybe use ODBC or C/Front.
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • Options
    LioLio Member Posts: 10
    I can read/write data to tables, but in this way I don't use Navision Business Logic. To read/write only data I can use odbc, but I want use Navision autonumber, triggers and so on.

    Thanks to dataport I can achieve this.

    Mabe is other way... Mabe I can somehow run a code unit (from other application) and from code unit run dataport... I don't know :(

    If somebody know how I can do this please answer.
  • Options
    LioLio Member Posts: 10
    eromein wrote:
    You could make a codeunit that exports the data and call that codeunit from the NAS.

    Can You tell me how I can do this ?
    Sorry, I'm rookie in Navision :oops:
Sign In or Register to comment.