Friday, July 13, 2018

Integration of a Query

To incorporate a query into the dialog of a RunBase class, implement the
following methods and modifications. The following examples will replace the
CustAccount, FromDate and ToDate dialog fields, with a single query on theCustTrans table, to allow the user to specify their own criteria.

classDeclaration

The classDeclaration needs some additional variables defined to incorporate a
query. Define a class variable of the type
QueryRun. This variable holds a
handle to the object which executes the query.
The
classDeclaration now resembles the following content.


1
2
3
4
5
6
7
public class DemoRunBaseQuery extends RunBase
{
  QueryRun queryRun;
  #DEFINE.CurrentVersion(1)
  #LOCALMACRO.CurrentList
  #ENDMACRO
}

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