CHAPTER 1 - Introduction to X++
CHAPTER 2 - X++ Control Statements
CHAPTER 3 - Objects and Classes
CHAPTER 4: Accessing the Database
CHAPTER 5: Exception Handling
CHAPTER 6: Security for Developers
Lesson 4 – Display Method Authorization
Display Method Authorization:
The display method Authorization indicates that the method has a return value that can appear on a form or a report. A display method is any method that includes the display keyword as a method modifier. You can use the display method modifier with the following kinds of methods:
- Table methods
- Form methods
- Form data source methods
- Report methods
- Report design methods
You should add a display method as a table method whenever possible. This enables you to use that same code with more than one form or report.
A display or edit method is used to display data from another table or a calculated value. In theory, a display method can expose any data from any table. If a display method returns data from another table (or another row in the same table), it poses a threat. If a display method returns data from the same row but from another column, it also poses a threat. For example, a user might not be allowed to view another person’s monthly salary, but could run a query to ask for the annual salary (calculated value).