官术网_书友最值得收藏!

Creating a menu item for the report

The final part of developing a report is to make it available inside AX for the users. Post deployment, the report can be linked to an Output menu item. This recipe will expose the report inside the rich client through a menu item.

How to do it...

A menu item for the report can be created as follows:

  1. Navigate to AOT | Menu Items | Output, right-click and select New Menu Item. Set the following properties including the LinkedPermissionType setup shown in the screenshot:
  2. Open the menu item to run the report. A dialog is shown, the range Search Name added in the query appears followed by a Select button. The Select button is similar to the MorphX reports option where the user can specify additional conditions. To disable the select option go to the Dynamic Filter property in the dataset and set it to false.
  3. The report output should appear as follows:

How it works...

The report viewer in Dynamics AX is actually a form with an embedded browser control. The browser constructs the report URL at runtime and navigates to the report's URL. Unlike in AX 2009, when the report is rendering the data, it doesn't hold up using AX. Instead, the user can use the other parts of the application while the report is rendered in parallel. This is particularly beneficial for the end user as they can continue to proceed with other tasks as the report executes.

The permission setup is important as it helps in controlling the access permissions of a report.

See also

  • Adding reports to the role center in Chapter 6, Beyond Tabular Reports.
  • Handling events post report completion in Chapter 8, Troubleshooting and Other Advanced Recipes.
    Tip

    To make changes faster and to view the changes on the reporting screen, use the vertical group option in Visual Studio. This puts the report model and the preview side-by-side, making it easier to review the changes as seen in the following screenshot:

Tip

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

主站蜘蛛池模板: 十堰市| 永年县| 惠东县| 江永县| 武威市| 富蕴县| 南郑县| 东兰县| 临澧县| 栖霞市| 英吉沙县| 东源县| 河北区| 辰溪县| 富民县| 鄂伦春自治旗| 达尔| 鄂伦春自治旗| 北海市| 麻栗坡县| 鹤岗市| 昌邑市| 汾阳市| 武宁县| 长顺县| 新宾| 微博| 沈阳市| 营口市| 茌平县| 武宁县| 屯留县| 台中市| 成安县| 关岭| 垣曲县| 梁平县| 顺义区| 双江| 神木县| 泰州市|