Friday, July 13, 2018

Run

The run() method can use the queryRun object directly as it is initialized after
the user has accepted the dialog.
The
run() method is implemented as shown in the following content.


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
public void run()
{
  AmountMST amountMST;
  CustTrans custTrans;
  while (queryRun.next())
  {
    custTrans = 
    queryRun.get(tableNum(CustTrans));
    amountMST += custTrans.AmountMST;
  }
  info(strFmt("Sum equals %1", amountMST));
}

When this version of the class is run from a menu item, the dialog has the query
select button and criteria preview, as shown in the following figure:



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...