web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

A question about debug and source code of FormDataSource

(0) ShareShare
ReportReport
Posted on by 460

Hi All

A question about debug and source code of FormDataSource

I'm doing debug in a AX2012 R3 environmet.

I want to read the source code of class "FormDataSource". But it seemed that  I can't read that source code. How can I figure it out ?

Yours Regards

 Jacky

I have the same question (0)
  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Jacky,

    You won't be able to debug FormDataSource class as this is present in the kernel. You can, however, go to System documentation node in AOT and check the class under "Classes" section. You can check this link as well to check the methods present in this class.

    What code are you looking to debug in the FormDataSource class?

  • Jacky Qian Profile Picture
    460 on at

    Hi Gunjan,

    Thanks for your reply. Your description answers my question. As FormDataSource class is present in the kernel, I can't debug it directly.

    >What code are you looking to debug in the FormDataSource class?

    In fact, I wondered AX2012 how to update table LogicsticPostAddress's field Address, so I intended to check the update logic of table LogicsticsPostAddress in form Bank Account of Vendor. Howerver it seemed that I couldn't find the source code where calls the method "Update()" of table LogicsticsPostAddress, which made me confused. I just observed that the method "writing()" and "written" of datasource LogisticsPostalAddress were called by AX, but I think these two method are not really the place where to update the table LogicsticsPostAddress. So I guess the it may happen in method "write()" of FormDataSource.

    So I want to debug the FormDataSource and read the source code of method “write()”. Could you please give me some suggestion and tell me where is the really place that updates the table LogisticsPostalAddress ?

    pastedimage1651458410471v1.png

    pastedimage1651459081563v2.png

    Best Regards

    Jacky

  • Verified answer
    Martin Dráb Profile Picture
    237,807 Most Valuable Professional on at

    The writing() and written() methods are used instead of write() in case of change groups. Consult Change Group and Optional Record Modes in AX 2012 documentation for more details.

  • Jacky Qian Profile Picture
    460 on at

    Hi Martin

    Thanks for your help. I got it.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans