Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Leave() Method on SalesTable not firing on creation of new Sales Order

Posted on by 200

The leave() method on the SalesTable Datasource on the SalesTable Form does not get called when you create a new Sales Order. So, in creating a new sales order, you are able to leave a record without the leave() method being called.  Is this normal? 

*This post is locked for comments

  • cowboyott Profile Picture
    cowboyott 200 on at
    RE: Leave() Method on SalesTable not firing on creation of new Sales Order

    After again reading through the method Sequence for Creation of a Record, It appears that the Leave() method is NOT called in my scenario above.

    I guess this makes the leave() method an even worse method to override.... 

  • cowboyott Profile Picture
    cowboyott 200 on at
    RE: Leave() Method on SalesTable not firing on creation of new Sales Order

    Thanks Sukrut, 

    Do you know if that would be the same for 2009? The "older versions" drop down link does not seem to have anything...

    Here is what I am doing:

    1. I put a breakpoint on the leave() method on the SalesTable Form SalesTable Datasource

    2. Open SalesTable - (breakbpoint gets hit)

    3. Make sure I am on focus on the last Sales Order record

    4. Create a new Sales Order using Ctrl + N 

    5. Create Sales Order Form comes up and I complete customer information

    6. New Sales Table record is created and focus has changed from the previous record to the newly created record, but the Breakpoint has not been hit.

    Based off of the link you provided, in 2012 this should not be the case. Was this just a bug in 2009, or what am I missing?

    Thanks for your help.

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans