issue with 'read' when using filterfn()
You guys might have fixed this already, maybe not
When you send a function that returns a string to whereClause, the code we downloaded was adding a 'null' to the end of the WHERE clause.
eg StartDate BETWEEN '2013-01-01' AND '2013-02-01' null
Because of the last else in the construction of the sql string ... This code was the culprit
PHP Code:
sql += ' ' + filter.getValue();
Anyhow ... by moving all the code
PHP Code:
/* FROM HERE*/ if (!filter.getExactMatch() && /*... DOWN TO the "Cuplrit" */
up to
PHP Code:
if(typeof filter.getFilterFn() == 'string'){ ... } else { /*MOVE TO HERE*/ }
... problem solved