can also be defined on the form. Display methods return a value that is displayed
on the form or report. They are often used to display a calculation, or to look up a
single field from another table. The following example shows how to display the
item name on a form that displays data from a table containing the item id.
1: // BP Deviation documented
2: display itemName itemName()
3: {
4: inventTable inventTable
5: select name from inventTable
6: where inventTable.itemId == this.itemId;
7: return inventTable.name;
8: }
The first line in this code is a comment to the compiler indicating that a BestPractice deviation is considered and evaluated as reasonable. The deviation is
because a display method is able to return any data from any table or field in the
system, and so the security implications should be considered.
Best Regards,
Hossein Karimi
*This post is locked for comments