Book Image

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Book Image

Microsoft Dynamics AX 2012 R3 Reporting Cookbook Update

Overview of this book

Table of Contents (17 chapters)
Microsoft Dynamics AX 2012 R3 Reporting Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Setting up security for reports


Security set up for a report is significant as it helps apply the right control. As a developer, it is important to understand the right security approach during development. Through this recipe, we will learn how to properly set up security for reports.

How to do it…

  1. Go to the Action menu item and add a new menu item.

  2. In the properties of the menu item, set the properties as follows:

    Property

    Value

    Name

    PktItemTransList

    Object Type

    Class

    Object

    PktItemTransController

    LinkedPermissionType

    SSRSReport

    LinkedPermissionObject

    PktItemTransList

    LinkedPermissionObjectChild

    ItemTransList

    ViewUserLicense

    Functional

    MaintainUserLicense

    Functional

How it works...

The LinkedPermissionType properties control the security of a report. They tell the security framework where the security for this menu item must be inferred from. The framework tries to retrieve the associated report from the object attached to the entry points, which is a menu item in this case...