web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Open a Web Browser Through a GP Addin

(0) ShareShare
ReportReport
Posted on by

Hello All,

Does anyone know if it is possible to open the default Web Browser window to a specific URL from a GP Addin?  I can get this to work in VBA code using Shell without any issue but it seems to completely skip over this line in my Addin Code.  I have tried this and a few other variants without any success.

Addin Code:

string url = "http://www.google.com";

System.Diagnostics.Process.Start(url);

 

Is there any sort of a workaround other than to use VBA? (GP 2010 R2)

Thanks for your assistance!

John

*This post is locked for comments

I have the same question (0)
  • Verified answer
    JamesLyn Profile Picture
    360 on at

    I did a simple test and got it to work when accessed from my menu handler. Where are you trying to launch the code? Needless to say, make sure your project builds and compiles successfully and that you are copying the correct debug/release dll.

    Public void Initialize()

    {

    Microsoft.Dexterity.Applications.Dynamics.Forms.GlTransactionEntry.AddMenuHandler(test, "test");

    }

           static void test(object sender, EventArgs e)

           {

               System.Diagnostics.Process.Start("http://www.google.ca");

           }

    James

  • Community Member Profile Picture
    on at

    James,

    Thanks for taking the time to test this.  My problem has been resolved.  

    I was calling the same Menu Handler procedure to open the web page from 2 different forms (modified and unmodified form) which would test the type of the form to determine which URL should open and that was causing the issue.  Once I made two separate procedures everything worked as expected.

    Thanks again!

    John

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans