Personalized Community is here!
Quickly customize your community to find the content you seek.
Latest TechTalk Videos
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.
2022 Release Wave 1 PlanDynamics 365 release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.
2022 release wave 1 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
This posts helps you to understand and create a "display" method for the table extension.
Lets say, the requirement is to add a method in the standard table, it can be achieved either by creating a table extension.
So in this scenario we had a requirement to add a display method in the standard table "CustTrans".
In Dynamics 365 we wont be able to add the new method or modify the existing method to the standard table or to an extension table.
It can be achieved by using the extension class.
Step 1: Create a new class and name it as _.
- can be any name, but it is preferred to give the table name for which the extension is being created.
postfix <_Extension> is must.
public static class CustTrans_Extension
Step 2 : Now add the display methods in the class which is required to be shown.
public static display AgreementId agreementId(CustTrans _this)
select ledgerJournalTrans where ledgerJournalTrans.TransactionType == LedgerTransType::Payment && LedgerJournalTrans.CustTransId == _this.RecId;
Step 3: To use this display method in the form.
Create a string control in the form design and set the following properties
Data source: CustTrans
Below is the screen shot for reference.
Step 4: Build/Rebuild the project/solution and check the output in the URL.
Naresh Kumar Kolli
I am getting an error every time as Object reference not initialized
- Added new method on SalesLine_Extension Class
Naresh that's good one. Naresh,I have a scenario...We have migrated from ax 2012 to d 365.
few application objects( tables,classes) like that. when you use find references. for tables example
ledgerjournaltrans. its not showing the any fields in the application as such the in ax 2012.
how to fix the issue. kindly reply me as soon and possible
Hi Naresh, can we use the display methods on the SSRS report in AX7 like we do in AX 2012?,
Because we're isolating the table extension code in class. Will SSRS data set query detect the display method by itself to use as a data point or we have do specify process to do use the display method on the SSRS reports for the data field, Any idea on this?
Business Applications communities