Friday, July 13, 2018

InitParmDefault

The RunBase framework calls the initParmDefault() method when initializing a
new object of a
RunBase class, if the class does not have previous initialization
data stored in Usage data.
The following content shows you how to build a query dynamically.



 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
public void initParmDefault()
{
  Query query;
  QueryBuildDataSource dataSource;
  super();
  query = new Query();
  dataSource = 
  query.addDataSource(tableNum(CustTrans));
  dataSource.addRange(fieldNum(CustTrans, 
  AccountNum));
  dataSource.addRange(fieldNum(CustTrans, TransDate));
  queryRun = new QueryRun(query);
}

If a class has data in Usage data, new objects are initialized with the unpack
method.


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