Options

Navision To Dot Net

rajdeepsamantarajdeepsamanta Member Posts: 28
edited 2010-06-28 in NAV Three Tier
Hi,
Can any body help me for how to invoke a .net page from navision. Ex. In sales order ther is a button after press that button open a .net page for geting some information to the client.

How I can invoke this can any body help me.

Regards
Rajdeep

Comments

  • Options
    ara3nara3n Member Posts: 9,255
    use hyperlink('Http://www.google.com');
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    freddy.dkfreddy.dk Member, Microsoft Employee Posts: 360
    You can write a COM object in which you would have your .net code and form. Have this COM object deployed on the client and run it client side.
    Freddy Kristiansen
    Group Program Manager, Client
    Microsoft Dynamics NAV
    http://blogs.msdn.com/freddyk

    The information in this post is provided "AS IS" with no warranties, and confers no rights. This post does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.
  • Options
    rajdeepsamantarajdeepsamanta Member Posts: 28
    Thanks for your reply....
    But How I can do this thing. One more thing how can do this with automation. Please provide me the solution in detail.

    Thanks

    Regards
    Rajdeep
  • Options
    ara3nara3n Member Posts: 9,255
    here is a link on how to use automation that are built in .net

    http://blogs.msdn.com/nav/archive/2008/ ... am+Blog%29
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    rajdeepsamantarajdeepsamanta Member Posts: 28
    Thanks for your posting...

    But did not get how I intregrated nav to .net. How I call a .net from in pressing a button on nav??

    Please fill free give this answer...

    Thanks
    Rajdeep
  • Options
    ara3nara3n Member Posts: 9,255
    You add a button to the form.

    You add a variable for the automation and select your dll.

    your code should look something like this onPush trigger


    if isclear(MyAutomation) then
    create(MyAutomation);

    MyAutomation.dosometthing;



    clear(MyAutoamation);


    I suggest to read some online documation for beginner programming for NAV.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    rajdeepsamantarajdeepsamanta Member Posts: 28
    thanks for your reply....

    can u tell me which automation is used for this....

    can u give me any link about this thing......

    thanks
    Rajdeep
  • Options
    ara3nara3n Member Posts: 9,255
    You will need to create the automation (dll) In .NET.

    I provided that link in my previous post.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    rajdeepsamantarajdeepsamanta Member Posts: 28
    Thanks for your reply...But right now I we can manage this scenario..

    I want to know How I can pass a variable from navision to a aspx page, and how get a variable from aspx page to navision. Is ther any functionalty to call the navision function in a aspx page and viceversa?

    For example.
    1. In a salse order form there is a button, when I pressd that button it's call a aspx page that is extarnal program were we pass the sales order no.
    2. After we getting some input to aspx page after pressing button on the aspx page it is modified the data of that sales order with input which we have putting in aspx page.

    Any body can provide me this solution??
  • Options
    ara3nara3n Member Posts: 9,255
    I suggest to use NAV 2009 executables.
    On MSDN you'll find how to publish webservices in NAV 2009.

    On your aspx you add the webservice as reference and do what you would like to do
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    HanenHanen Member Posts: 281
    Can you help me :cry:
    I can't see the dll from Navision even if I've registred it into the cash and the result of the operation was succeeded using regasm and gacutil


    Thank you!!!
    Regards

    Hanen TALBI
  • Options
    ara3nara3n Member Posts: 9,255
    try and add /codebase as parameter when you use regasm
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    HanenHanen Member Posts: 281
    I've tried that, I think it's a matter ofrefreshing the cash or something like that, the dll (com) is registred properly but I can't see it from Nav :cry:
    Regards

    Hanen TALBI
  • Options
    ara3nara3n Member Posts: 9,255
    try and un register the dll first

    reasm youdll.dll /u
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.