O'Reilly logo

Microsoft Dynamics AX 2009 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

Selecting a file

The previous recipe explained how to create a folder browsing lookup. This recipe will show several approaches to create a file lookup using standard Dynamics AX.

As an example, we will create a Terms & conditions control in the Form setup form in Account payable, which allows storing a path to the text document.

How to do it...

  1. Open VendFormLetterParameters table in AOT, and create a new field with properties:

    Property

    Value

    Type

    String

    Name

    TermsAndConditions

    ExtendedDataType

    FilenameOpen

    Label

    Terms & conditions

  2. Then add it to the PurchaseOrder field group.
  3. Next, open the VendFormletterParameters form in AOT, and create the following methods:
    str fileNameLookupTitle()
     { return "Select Terms & conditions document"; }  ...

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