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

Browsing for folders

Folder browsing lookups are used when the user is required to specify a local or network folder for storing or retrieving Dynamics AX data. In this recipe, we will see how such lookups could be built using various techniques.

As an example, we will create a new control called Documents in the Ledger parameters form, which will store a folder path.

How to do it...

  1. Open the LedgerParameters table in AOT, and create a new field:

    Property

    Value

    Type

    String

    Name

    DocumentPath

    ExtendedDataType

    FilePath

    Label

    Documents

  2. Add the newly created field to the bottom of the General field group.
  3. Open LedgerParameters form in AOT, and create the following method:
    str filePathLookupTitle()
    
    {
    return "Select document folder";
    }
    
  4. To check ...

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