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 dynamic form

A standard approach for creating forms in Dynamics AX is to create and store form objects in AOT. This ensures system performance and a high level of complexity. But in a number of cases, it is required to have forms created dynamically. Looking at the standard Dynamics AX application, we can see that application objects like the Table browser form, various lookups, or dialogs are built dynamically.

In this recipe, we will create a dynamic form. To show how flexible it can be, we will replicate the layout of the existing transaction type form in the Bank module. It can be opened from Bank | Setup | Bank transaction type.

How to do it...

  1. In AOT, create a new class called BankTransTypeDynamic with the following code:
    static void ...

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