D365FFO – X++ – AX – 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

Image
Image

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 –

Image

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

Image

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

Image
Image

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.

Image

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

Image

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s