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 :
Microsoft Dynamics AX (Archived)

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,284 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,284 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

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans