Friday, July 13, 2018

Display Methods

A display method is used to display a calculation or data from another table. The
method modifier Display is added to the beginning of the method definition line
to allow the returned value to be displayed on a form (or report).
Display methods can be created either on a table or on a form data source. If it is
created on the form data source, then it takes the table as a parameter. If possible
a display method should be created on the table itself, but there are situations
where it has to be on the form data source, for example, if it uses an unbound
control on the form.
The following example is from the I
nventJournalTable form, and displays the
user ID of the user that is locking a journal.



1
2
3
4
5
6
//BP Deviation documented
display JournalBlockInUseUserId inUseUserId(JournalTableMap
_journalTable)
{
  return journalFormTable.datasourceMethodInUseUserId(_journalTable);
}

Best Regards,
Hossein Karimi

No comments:

Post a Comment

Configure the Firewall on the Enterprise Portal Server

After you install Enterprise Portal, enable Web Server (HTTP) in Windows Firewall. If you do not enable the web server in Windows Firewall...