How to: Create a Menu Item for a Report [AX 2012]
Updated: March 20, 2012
Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
You can create menu items in Microsoft Dynamics AX to provide access to the reports that you create with the Visual Studio tools for Microsoft Dynamics AX. These menu items are created as output menu items from the Menu Items node in the AOT and can display reports in both the client and in Enterprise Portal Web parts. The following procedure explains how to create a menu item for a report.
Before you create a menu item for a report, be sure that the report has been added to the AOT. For more information, see How to: Add Reports to Microsoft Dynamics AX. If you want to view the report from the menu item, you must deploy the report to a report server. For more information, see How to: Deploy Reports to a Report Server.
To create a menu item for a report
In the AOT, expand the Menu Items node.
Right-click the Output node, and then click New Menu Item.
Select the node for the menu item.
In the Properties window, set the following properties:
Type a name for the menu item.
Specify a label for the report title.
Set to SSRSReport.
If you define a SrsReportRunController class to run the report, set the ObjectType property to Class, and then select the controller class from the drop-down menu for the Object property.
Use the drop-down menu to select the report.
Set to Called from. If you set the report to run on Client and the report is run in a batch, the report will fail. If you set the report to run on Server and the report is displayed to the screen, the report will fail.
Save the changes in the AOT.