Is there a way to change the default filter criteria operator from "iContainsPattern" to "iContains"?
I'm getting empty values included when filtering a field on the word "undefined" or any sub-string of "undefined".
Every datasource field that is of type:text and that has empty values in the database gets unexpected results showing empty values. It happens when filtering on the word "undefined" or any sub-string of "undefined". The best hypothesis so far is that the empty value from the database is translated to the javascript 'undefined' identifier. And when the comparison is done, undefined is coerced to the string "undefined", which is then compared case-insensitive using a 'contains' method. This could happen if the value is concatenated with a string because javascript: "" + undefined === "undefined"
I haven't been able to reproduce the problem with the Smart GWT showcase. It uses HSQL while we use PostgreSQL but I doubt that matters. Also, though, the showcase doesn't have any empty values to begin with. I used the ISC Admin Console to remove values, but that might just be inserting empty strings (wild guess).
The Smart GWT filter defaults to "contains pattern". This problem doesn't happen if I use "contains" (by filtering with the filter expression symbol ~).
Thanks!
-Chris
SmartClient Version: v11.0p_2016-08-09/Enterprise Deployment (built 2016-08-09)
FireFox 24 (because we're using dev-mode)
I'm getting empty values included when filtering a field on the word "undefined" or any sub-string of "undefined".
Every datasource field that is of type:text and that has empty values in the database gets unexpected results showing empty values. It happens when filtering on the word "undefined" or any sub-string of "undefined". The best hypothesis so far is that the empty value from the database is translated to the javascript 'undefined' identifier. And when the comparison is done, undefined is coerced to the string "undefined", which is then compared case-insensitive using a 'contains' method. This could happen if the value is concatenated with a string because javascript: "" + undefined === "undefined"
I haven't been able to reproduce the problem with the Smart GWT showcase. It uses HSQL while we use PostgreSQL but I doubt that matters. Also, though, the showcase doesn't have any empty values to begin with. I used the ISC Admin Console to remove values, but that might just be inserting empty strings (wild guess).
The Smart GWT filter defaults to "contains pattern". This problem doesn't happen if I use "contains" (by filtering with the filter expression symbol ~).
Thanks!
-Chris
SmartClient Version: v11.0p_2016-08-09/Enterprise Deployment (built 2016-08-09)
FireFox 24 (because we're using dev-mode)
Comment