I have a problem with connector filtering with Oracle. What I want is Case-INsensitive filtering on the server side with #connector_text_filter. But It doesn’t work. The filter is always case-sensitive.
I’m using “Oracle Database 11g Enterprise Edition”, 11.2.0.1.0, 64bit Production on Windows Platform and PHP-connector.
Attached a ZIP File to show the problem. I have 2 Grids, one with #text_filter and one with #connector_text_filter. The SQL creates the oracle table EMPLOYEES and inserts 5 rows.
What I want is server side case-INsensitive filtering with #connector_text_filter connected to an oracle database. Can somebody help me:?:
Thanks in advance.
connector_filter_case_sensitive_problem.zip (374 KB)
You can redefine the SQL code which is generated for data filtering.
docs.dhtmlx.com/connector__php__ … event.html
You can use something like next
[code]function custom_filter($filter_by){
$index = $filter_by->index(“FIRST_NAME”);
if ($index!==false) {
$value = $filter_by->rules[$index][“value”];
// any sql code here
$filter_by->rules[$index]=“FIRST_NAME LIKE $value”;
}
}
$grid->event->attach(“beforeFitler”, “custom_filter”)
$grid->render_table(“EMPLOYEES”,“EMPLOYEE_ID”,“FIRST_NAME,LAST_NAME”);[/code]