Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

VS Tools for GP PopPoEntry Save event?

Posted on by Microsoft Employee

I have a requirement to record changes between revision of  a PO when PO is saved. I could not find an event that I can register to on the form PopPoEntry. So I registered to then SaveButton.ClickAfterOriginal event. This worked, but if user makes a line change and hits enter GP saves and clears form. I can't find a way to get notification when that happens. Any ideas of what I can do?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: VS Tools for GP PopPoEntry Save event?

    They are no such events on Save button

  • soma Profile Picture
    soma 24,406 on at
    RE: VS Tools for GP PopPoEntry Save event?

    We can use Dynamics.Forms.Functions in VSTools. Because i have used GP SOP Batch post function to posted the SOP batch through VSTools.

    For your scenerio, no need to write code on GP Form fuction. Just change the trigger SaveButton.ClickAfterOriginal (This script only run while user click save button) event to SaveButton.Changed/SaveButton.AfterOriginal. May be it will affect while user press enter button to save PO.

  • Naga Kiran Profile Picture
    Naga Kiran on at
    RE: VS Tools for GP PopPoEntry Save event?

    Hmmm.. I tried it myself and it seems the Save() function has parameters that are not supported in VSTools environment. So it will not be visible.

    I see no other option than Save Button.

    FYI, Save button is the default button for the window. This means, whenever you hit Enter when the window is active, by default Save Button change script will be triggered. That's the reason the window gets saved and cleared. And I am not sure the same event handler script on Save Button will work in this scenario as well.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: VS Tools for GP PopPoEntry Save event?

    There is no Save event or method in the Dynamics.Forms.PopPoEntry.Functions Class. Is there something I'm missing?

  • Suggested answer
    Naga Kiran Profile Picture
    Naga Kiran on at
    RE: VS Tools for GP PopPoEntry Save event?

    BORICUA1213,

    You should add the handler for the form function Save() instead of  Save Button.

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans