Display methods in AX 2012
Indicates that the methods return value is to be
displayed on a forms (or) Reports .
The value cannot be altered in the
form or report.
Take the new method in a table, and then drag that
method into the grid and set data source properties.
In that field is non-editable.
We
can create display method on the
1. Table methods
2. Form methods
3. Form data source methods
4. Report methods
5. Report design methods
|
Display Name names () { CustTable custTable; ; return CustTable::find(this.CustAccount).Name; } |
OR
In some scenarios, we need to display
some values derived from other columns and those are not associated directly
with the database, like Amount fields (Unit*Price). In that case there are
display methods that perform that functionality.
|
display Amount
amount() { AmountMST amount; amount = this.unitprice
* this.quantity; return amount; } |
Comments
Post a Comment