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

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo di WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione /  Modifica )

Google photo

Stai commentando usando il tuo account Google. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...