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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)
Answered

How to transfer value of new field in PriceDiscAdmTrans to PriceDiscTable

(0) ShareShare
ReportReport
Posted on by 640

Dear all,

I am using AX 2012 R3 Cumulative Update 11. I added new field in "PriceDiscAdmTrans" and "PriceDiscTable" table. I want this value of new field is transferred to "PriceDiscTable" table. As far as I know, system will create record in "PriceDiscTable" table when I post in "Price/Discount Agreement Journal Line" form. I have tried to add code in method "postJournal" of class "PriceDiscAdmCheckPost", but my new field is blank. I have tried to add code in method "initFromPriceDiscAdm", but my new field is blank. 

Could you inform me where should I put to fill my new field in "PriceDiscTable" from "PriceDiscAdmTrans"?

Thanks in advance.

Best regards,

Johanna

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    Hi pearl_jo,

    initFromPriceDiscAdm is a right place to add your code, however, this code is executed in CIL so after modifying this method you need to build CIL.

  • pearl_jo Profile Picture
    640 on at

    Thanks ievgen. I have tried to generate incremental CIL. But, my new field in "PriceDiscTable" table is still blank after post journal. Please advise.

  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    That was valid for early versions of AX 2012, i just overlooked your version. In R3 you need to add new filed to macro "FieldList" that could be found in class declaration of PriceDiscAdmCheckPost class.

  • pearl_jo Profile Picture
    640 on at

    Dear ievgen,

    You are right. I added code in method "initFromPriceDiscAdm" (PriceDiscTable). I added my new field to macro "FieldList" in class declaration of PriceDiscAdmCheckPost. I generated incremental CIL. Now, my new field is filled in "PriceDiscTable" with the value from "PriceDiscAdmTrans" table. Thank you so much 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans