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

Processing multiple records

In my practice, I was asked a number of times to create various application functions that process user-selected records in a form grid. Regardless of what function is being created, the first step was always to determine what records were selected by the user.

In this recipe, we explore several ways of achieving this goal. We will modify the Items form in the Inventory management module by adding a new button to it, which lists currently selected records in the overview grid.

How to do it...

  1. In AOT, open the InventTable form and create a new method with the following code:
    void processSelectedItems()
     { InventTable inventTableLocal; ; for (inventTableLocal = InventTable_ds.getFirst(true) ? InventTable_ds.getFirst(true) ...

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