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

Building a tree lookup

Form tree controls are a user-friendly way of displaying a hierarchy of related records like a company organizational structure, a bill of materials, projects, etc. Such a hierarchy can also be used in custom lookups allowing user to browse and select the required node in more convenient ways.

One of the previous recipes explained how to display the ledger budget model hierarchy in the Budget model form. In this recipe, we will reuse the previously created BudgetModelTree class to build a budget model tree lookup.

How to do it...

  1. Create a new form in AOT:

    Property

    Value

    Name

    BudgetModelLookup

  2. Set its design properties to:

    Property

    Value

    Frame

    Border

    WindowType

    Popup

  3. Add a new Tree control to the form's design.

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