Execute Navision codeunits from VB.NET

jonkarjonkar Member Posts: 13
Is it possible to create a VB Application, then execute navision codeunits?

I thought I read somewhere of a Thirdparty app. that allowed this.

Thanks,

J.

Comments

  • jhoekjhoek Member Posts: 216
    Your VB.NET application could use C/Front to write information in a table, whose presence triggers the execution of a codeunit, e.g. using the Navision Application Server?!
    Kind regards,

    Jan Hoek
    Product Developer
    Mprise Products B.V.
  • jonkarjonkar Member Posts: 13
    I would rather be able to just execute the Codeunit without relying on a trigger.
  • DakkonDakkon Member Posts: 192
    Sorry to rain on your parade, but data inserted using c/front never executes the tabel triggers. There is effecitvely no way to automatically execute a codeunit from outside.
    Thad Ryker
    I traded my sanity for a railgun :mrgreen:
  • DenSterDenSter Member Posts: 8,307
    I think what Jan is saying is you can use C/FRONT to write a record to a Navision table, and on top of that have a NAS check for records in that table, and fire off codeunits as a result of certain values.
  • DakkonDakkon Member Posts: 192
    That would work. It's a bit disconnected for my tastes, but it is one your few and only stable solutions for that.
    Thad Ryker
    I traded my sanity for a railgun :mrgreen:
  • DenSterDenSter Member Posts: 8,307
    Personally I wouldn't even bother with C/FRONT and send messages into a message queue, and handle the whole thing through Navision development. To me that's the best way to integrate with Navision if you need to use the business logic.
  • jhoekjhoek Member Posts: 216
    Good point. Yours is a more practical solution - I stand corrected! :wink:
    Kind regards,

    Jan Hoek
    Product Developer
    Mprise Products B.V.
  • DenSterDenSter Member Posts: 8,307
    It's a pity though that we have to decide in our customer's best interest. As a developer I would love it if I got to play around with C/FRONT and Visual Studio :mrgreen: .
  • garakgarak Member Posts: 3,263
    With tricks it is possible. You must "only" simulate a navision client. This is very easy whe n a navision client is installed on the computer. Then you open the client and send your commands per "send key" or others.

    But, why you will use an VB-Application?

    An otehr question: In wich case i must use "a" an when "an" :?:

    Regards

    sorry english speeking persons for my englishm, i've drunken 2 bottles germand red wine and some german beer :oops: But tis drinks are tasty \:D/
    Do you make it right, it works too!
  • DenSterDenSter Member Posts: 8,307
    I really don't think hacking your way into an enterprise solutin by way of a keystroke macro recorder will be a solid enough solution, especially since you will have to also record passwords and such. Not very secure in my opinion.

    <edit>Don't worry, your English puts my German to shame :mrgreen: </edit>
Sign In or Register to comment.