Friday, July 13, 2018

Run

The run() method controls the data manipulation. The method can use the
variables defined in the classDeclaration and initialized from the dialog. The
method does not receive any formal parameters.
The content of the
run() method is unique for each data manipulation, based on
requirements. It will typically contain some local variables and a "try-catch"
statement with TTS calls that wrap all physical data manipulation into one logical
transaction.
The method for our example has the following content.



 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
public void run()
{
  CustTrans custTrans;
  select sum(AmountMST) from custTrans
  where custTrans.AccountNum == 
  ledgerAccount
  && custTrans.TransDate >= fromDate
  && custTrans.TransDate <= toDate;
  info(strFmt("Sum equals %1", 
  custTrans.AmountMST));
}

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