Creating an automatic lookup

Simple lookups in Dynamics AX can be created in seconds without any programming knowledge. They are based on table relations, and appear automatically. No additional modifications are required.

This recipe will show how to create a very basic automatic lookup using table relations. To demonstrate this, we will add a new Method of Payment control to the existing Customer group form.

How to do it...

  1. Open the CustGroup table in the AOT, and create a new field with the following properties:

    Property

    Value

    Type

    String

    Name

    PaymMode

    ExtendedDataType

    CustPaymMode

  2. Add the newly created field to the end of the Overview field group of the table.
  3. Open the EDT relation migration tool form located in Tools | Code upgrade. Find ...

Get Microsoft Dynamics AX 2012 Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.