Notifications
Announcements
No record found.
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
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?
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 ?
Best Regards
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 664 Most Valuable Professional
André Arnaud de Cal... 522 Super User 2025 Season 2
Sohaib Cheema 303 User Group Leader