Tuesday, May 1, 2018

How to write a display method in extensions (D365)

Requirement is to display a column from InventTable on Movement Journal lines form based on the selected item.

1. Create a new class and give a name, best practice is to give a name of the object with extension keyword





2. Once class is created, make sure you are using proper syntax and namespaces as below and also write the display method based on your requirement -



3. Compile the class.
4. Now find the 'InventJournalMovement' form in AOT and create an Extension





5. Then open the form and create a column as per your requirement.








6 . After create a new column, right on the column and select properties and then select the data source and data method which we have created in a final class.




7 . Build the solution. Now we should be able to see that column in Movement journal lines form



Tags: #DisplayMethods , #Extensions, #X++, #D365FO