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

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Create event handler

(0) ShareShare
ReportReport
Posted on by 195

Hello ,

how I can add event handler in additional part for the sales transaction entry in Microsoft dynamics GP 2013

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    soma Profile Picture
    24,410 on at
    RE: Create event handler

    Create a addons in VSTools and add it the window Sales Transaction Entry window.

    Hope this helps!!!

  • Suggested answer
    Naga Kiran Profile Picture
    on at
    RE: Create event handler

    Yes you can add event handlers using VS Tools as Soma suggested. Below is the tutorial you can start with.

    dynamicsgpblogster.blogspot.in/.../getting-started-with-visual-studio.html

    Please note that

    1. The tutorial uses Visual Studio 2008. Since you are on GP 2013 you should use VS 2010.

    2. Also you should install VS Tools SDK from your GP 2013 install disk and it will be available under Tools\SDK

    Hope this helps.

  • Ibrahim N. Omran Profile Picture
    195 on at
    RE: Create event handler

    thanks guys,

    I am working with VS Tools, but I want to know what's the technical form name for the Sales transaction screen

  • Suggested answer
    soma Profile Picture
    24,410 on at
    RE: Create event handler

    The technical name for the Sales Transaction Entry form is SopEntryForm and the window name is SopEntry.

    Example Code for add window to Sales Transaction Entry window additional menu as below.

    static SopEntryForm sopFormName = Dynamics.Forms.SopEntry;
    static SopEntryForm.SopEntryWindow sopWindowName = sopFornName.SopEntry;


    public void Initialize()
    {
    sopFornName.AddMenuHandler(addNewWindow, "New Window", "N");
    }

    static void addNewWindow(object Sender, EventArgs e)
    {
    // check to make sure the form is not either empty or already created
    if (window1Obj == null)
    {
    window1Obj = new Window1();
    }
    else if (window1Obj.Created == false)
    {
    window1Obj = new Window1();
    }
    window1Obj.Show();
    window1Obj.Activate();
    window1Obj.WindowState = System.Windows.Forms.FormWindowState.Normal;
    }

    Hope this helps!!!

  • Suggested answer
    Mahmoud Saadi Profile Picture
    32,738 on at
    RE: Create event handler

    Mr. Ibrahim

    I would like to welcome you to Dynamics GP Community as this seems to be your very first post. 

    The form name is SopEntryForm. Although,I believe you need to consider the Name Wizard in order to be able to get the windows, fields and forms names in general. As shown below; 

    Give a man a fish and you feed him for a day, teach a man to fish and you feed him for a lifetime    :)

    Never hesitate to share any further inquiries, 

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans