Skip to main content

Notifications

Announcements

No record found.

Display Methods

Display methods are used on forms. They are commonly created on the table, and
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 Best
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

Comments

*This post is locked for comments