WhereClauseBinding - innoventsolutions/birt-functions-lib GitHub Wiki
Placed in a DataSet's before method, this functions will add to the where clause to place a SQL snippet into the expression which will be evaluated at runtime binding a parameter and its values to the where clause. Arguments:
- reportContext
- the data set (this)
- operator (String) "IN" or "LIKE"
- data type (String)
- parameter name (String)
The function returns a snippet that needs to be appended onto the end of the query text.
NOTE: the parameter name must match a parameter and is also the name of the field that is being filtered.
Example:
this.queryText += CustomFunctions.WhereClauseBinding(reportContext, this, "LIKE", "string", "customername");