Skip to main content

Notifications

Announcements

No record found.

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

  • Suggested answer
    Mahmoud Saadi Profile Picture
    Mahmoud Saadi 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, 

  • Suggested answer
    soma Profile Picture
    soma 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!!!

  • Ibrahim N. Omran Profile Picture
    Ibrahim N. Omran 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
    Naga Kiran Profile Picture
    Naga Kiran 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.

  • Suggested answer
    soma Profile Picture
    soma 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!!!

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans