Book Image

Microsoft Dynamics AX 2012 R3 Security

By : Ahmed Mohamed Rafik Moustafa
Book Image

Microsoft Dynamics AX 2012 R3 Security

By: Ahmed Mohamed Rafik Moustafa

Overview of this book

Table of Contents (12 chapters)

Security for the display and edit methods


The display method is not a physical field in a table but is a method to display information from another table or resource. In simple words, it can expose data from any table that includes the display keyword as a method modifier. The methods that can use the display method modifier are as follows:

  • Table

  • Form

  • Report

  • Report Design

  • Data Source

Note

The display method modifier is any method that includes the display keyword as a method modifier. It indicates that the method has a return value that can appear on a form or a report.

The following example is a standard display method from the SalesTable table:

display CustName customerName()
{
    return this.partyTable_CustAccount().Name;
}

To create a display method, follow these steps:

  1. Place the display keyword in front of the method's return type. For example:

    display Amount amount()
  2. Determine the return type. The return type should be an extended data type. A display method returns a calculated value...