Hello,
I have a problem when using “connector” filtering with db table having some NULL values in columns (Postgres).
I have a script:
grid_zap.attachHeader("#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter,,,,#connector_text_filter,#connector_text_filter");
Starting, the grid initializes with all records. When I’m starting to type something in the filter fiels, Connector generates something like
SELECT *,'' as _l FROM dok_ksiegowy WHERE netto LIKE '%%' AND brutto LIKE '%%' AND status LIKE '%%' AND vat LIKE '%%' AND nr_dok LIKE '%AM%' AND typ_dok LIKE '%%' AND kontrahent LIKE '%%' AND data_dok LIKE '%%' AND miesiac LIKE '%%' AND opis LIKE '%%' AND nr_barcode LIKE '%%' AND nr_dok_sys LIKE '%%' AND rok LIKE '%%' ORDER BY nr_barcode DESC OFFSET 0 LIMIT 100
This is a problem, because record having NULL in any of the columns listed does not match the ‘%%’ pattern.
Is it possible - without editing the Connector code - make Grid not to send all empty strings from header filter to Connector, but the non-empty ones only?
Is it possible to make this filtering case- insensitive?