O'Reilly logo

Microsoft Dynamics AX 2012 R3 Reporting Cookbook by Deepak Agarwal, Chhavi Aggarwal, 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 the PKtInventBatchReport built in Chapter 4, Report Programming Model – RDP.

How to do it…

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:

  1. The first step is to create a parm method in the contract of type list. The parm method should appear as seen here:
    [ DataMemberAttribute('MultipleBatch'), SysOperationLabelAttribute("Multiple Batch"), AifCollectionTypeAttribute('return', Types::String) ...

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