O'Reilly logo

Microsoft Dynamics AX 2012 Development Cookbook by Mindaugas Pocius

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a lookup for selecting a file

In Dynamics AX, file reading or saving is a very common operation. Most of the non-automated file reading or writing operations prompts the user to specify the file name.

This recipe will demonstrate how the user could be presented with the file browse dialog, in order to choose a file in a convenient way. As an example, we will create a new control called Terms & conditions in the Form setup form in the Procurement and sourcing module, which allows storing of a path to the text document.

How to do it...

  1. In the AOT, open the VendFormLetterParameters table and create a new field with the following properties:

    Property

    Value

    Type

    String

    Name

    TermsAndConditions

    Label

    Terms & conditions

    ExtendedDataType ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required