O'Reilly logo

Microsoft Dynamics AX 2012 Reporting Cookbook by Kamalakannan Elangovan

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

Multi-value lookup

All the report dialog controls that we have seen so far in this book only store a single value, but there can be cases where you want the users to be able to choose multiple values. This recipe is going to show you how to do it.

Getting ready

This recipe will extend PKtInventBatchReport built in Chapter 4, Report Programming Model – RDP.

How to do it...

A multi-value look lookup can be implemented in reports, as follows:

  1. This recipe will add a multi-value lookup for the batch ID, so that the user can select multiple batches to be printed in the report. The first step is to create a parm method in the contract of list type. The parm method should appear as follows:
    [ DataMemberAttribute('MultipleBatch'), SysOperationLabelAttribute("Multiple ...

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