Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

SalesEditLines form

Posted on by 315

Hello

Where could I find the code fired when user press the Ok or Cancel button on SalesEditLines form?

Thanks in advance.

*This post is locked for comments

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: SalesEditLines form

    Sorry, in AX2012 you don't have CoC. Just right click Methods - override method - closedOk.

    Remember to remove it after your debugging.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: SalesEditLines form

    All forms have it because of the parent class FormRun has it. You can use CoC to wrap it on your form, and put breakpoint in your CoC method.

  • NewWatermelon Profile Picture
    NewWatermelon 315 on at
    RE: SalesEditLines form

    There is not a closedCancel method on that form.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: SalesEditLines form

    Try the closedCancel method.

  • NewWatermelon Profile Picture
    NewWatermelon 315 on at
    RE: SalesEditLines form

    What about the Cancel button code.

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: SalesEditLines form

    - clicked methods of those buttons

    - closedOk method of the form

    Debug these methods and you should find what you need.

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