Getting EnumTypeParameter in a ReportDataProvider class

Hi everyone,

I’m new to this forum and have been working with x++ for a little while. I want to create an SSRS report in AX 2012 where I can change the query in the data provider based on the output menu that was called. For example, if the report is called from output menuitem Report1 that has a certain enumtypeparameter I want to be able to add a range the the report query. Is this possible in AX 2012 or is there a better way to do this?

Thanks,

Shawn

You can get the value from Args in the report controller (arguments are typically passed from main() to parmArgs()). See RetailLabelController for example.

You can then access the data contract in the data provider and do whatever you need.

Martin,

Thank you for your response. Your reply and sited example of the RetailLabelController was exactly what I needed. Thanks for all your help.

Shawn