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 2 3 4 5 6 7 | // BP Deviation documented display itemName itemName() { inventTable inventTable select name from inventTable where inventTable.itemId == this.itemId; : return inventTable.name; } |
Practice 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
No comments:
Post a Comment