Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

PurchId creation- Which class or method

Posted on by

Hi All,

Im creating new purchase order from purchlistpage, i have put breakpoints in purchtable insert, update and write methods. It is never hitting there, but i see that purch id has been created in the table. How is it possible?

*This post is locked for comments

  • NoobDaxCoder Profile Picture
    NoobDaxCoder on at
    RE: PurchId creation- Which class or method

    Thank you all.

  • NoobDaxCoder Profile Picture
    NoobDaxCoder on at
    RE: PurchId creation- Which class or method

    I tried cross reference for purchtable.purchid. It yields no results. even after cross reference update for purchtable. i tried cross reference for entire table with filter write. it yields so many table methods, class methods and form methods. should i check one by one? it looks very tedious.. or am i missing some simpler way..

    Thanks for  your response.. i learn few things from your pointer.

  • Verified answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: PurchId creation- Which class or method

    Hi NoobDaxCoder!

    Take a look at formMethodDataSourceCreate() method of PurchTableType class and put breakpoint to formMethodDataSourceCreate() method of NumberSeqFormHandler class.

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: PurchId creation- Which class or method

    I think you should hit insert method. Try to remove "Execute business operations in CIL" from your user options and debug again.

    Also you can check what is the form that is used to create purchase orders (it's PurchCreateOrder or something like that) and examine and debug it.

    Like Crispin said, cross references are your friend. Get cross references for PurchTable.PurchId, filter by Write, and you see where this field is populated.

  • NoobDaxCoder Profile Picture
    NoobDaxCoder on at
    RE: PurchId creation- Which class or method

    I tried putting breakpoint in the said method. It doesnt hit when creating purchase order.. breakpoints works however.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans