The views and opinions expressed in this blog are those solely of the author(s) and do not necessarily reflect Microsoft’s current policy, position, or branding. For official announcements and guidance on Dynamics 365 apps and services, please visit the Microsoft Dynamics 365 Blog.
Personalized Community is here!
Quickly customize your community to find the content you seek.
Now Available in Community - New TechTalk Videos for 2020
Read More about New TechTalks for 2020
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming 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 <Classname>_<Extension>.
<Class-name> - 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