jqGridFilterBuilder.js example

Builder for filling jqGrid.postData.filter.
jqGrid Filter Operators (op) cheat sheet
Code

let f = jqGridFilterBuilder;

Js object returned

* ver la consola

Filter2Where.php

jqGrid Filter Operators

OpIn SqlNote
eq=
ge>=
gt>
le<=
lt<
ne<>
btBETWEENValues in array or coma separated.
nuIS NULL
nnIS NOT NULL
inINValues in array or coma separated: value1,value2,...
niNOT INValues in array or coma separated: value1,value2,...
bw LIKE 'asdf%'begins with
bn NOT LIKE 'asdf%'not begins with
cn LIKE '%asdf%'
MATCH(field) AGAINST('+word1 +word2' IN BOOLEAN MODE)
contains
If filter2where defines field has full text index, respetando min y max token size
nc NOT LIKE '%asdf%'not contains
ma MATCH(field) AGAINST('+word1 +word2' IN BOOLEAN MODE)
LIKE '%asd%'# en menos de mi token o mas de max token
full text search
Usa fulltext Index sin checar si esta definido
ew LIKE '%asdf'ends with
en NOT LIKE '%asdf'not ends