Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
Hi all ! I have a problem , I must to customize Invoice in Sales update.
see my image:
data customer input:
when i post invoice then Serial and VN-IV number will write in CustInvoiceJour table.
please, help me solution or code X++ in system run write data for CustInvoiceJour table.
Hi Thanh Nguyen,
1)Add 2 new fields to SalesParmTable table
2)Add fields to SalesEditLines form
3)Add 2 new fields to CustInvoiceJour table
4)Add logic to init new fields in CustInvoiceJour from SalesParmTable into initFromSalesParmTable() method on CustInvoiceJour table.
Hi ievgen Miroshnikov, I did as you guide but in initFromSalesParmTable () method I add this.BHS_Serial = _salesParmTable.BHS_Serial; (This is CustInvoiceJour). resulting in data SalesParmTable Serial no longer CustInVoiceJournal the data (New Record has been born). Debug I tried but it does not work in initFromSalesParmTable (). please, give me ideas.
So you are saying that you can see data in _salesParmTable.BHS_Serial (in debug) but it is not saved to CustInVoiceJournal.BHS_Serial ?
Could you please share you code.
Hi ievgen Miroshnikov, I add 1 field in SalesParmTable and CustInvoiceJour BHS_Serial when I make Sales Update -> Invoice, it writes data CustInvoiceJour SalesParmTable but it does not have data.
Image data SalesParmTable.
Add code in initFromSalesParmTable() method:
Data in CustInvoiceJournal
I used debug but it can not stop at breakpoint in initFromSalesParmTable() ( I think it does not use the initFromSalesParmTable() method to execute)
Did you build CIL ? If you don't want to do this, just disable it in your user parameters.
Hi ievgen Miroshnikov, I do not quite understand your problem. Can you tell me more about the problems that are encountered ?,please . and What do I must ?
I don't have any problem :)
There are some code in AX that is executed in CIL, so if you did a change you need to build CIL or AX won't see your changes.
I see that you are not familiar with it, so you can read this article blogs.msdn.microsoft.com/.../il-compiles-explained to get details.
Also if you want to debug code that runs in CIL read this msdn.microsoft.com/.../gg860898.aspx
or you can simply turn it of for your session kaya-consulting.com/quick-note-on-debugging-in-ax-2012
Thanks ievgen Miroshnikov, I uncheck in excute business..... and i sucessful . why such hybrid, please ?
Could you please read articles for my previous post and then ask questions if something won't be clear for you ?
Also if your issue is solved, could you mark any answer that helped you as verified to close this thread ?
Business Applications communities