Category Archives: Expr* classes

jqgrid, Symfony2 – how we can process data from jqgrid searchbox

The jqgrid send filtered data in this format: ?_search=true&filters=&nd=1332250471208&page=1&rows=20&searchField=emailAddress&searchOper=eq&searchString=testmailaddress%40bibibi.com&sidx=id&sord=asc if we want to process we can use such method: $oQ0 = $repository->createQueryBuilder(‘p’) ->orderBy(‘p.fieldname’, ‘ASC’]); if ( ($tmp = $request->get(‘_search’)) && ($tmp == “true”) && $request->get(‘searchField’) ) { $searchField = $request->get(‘searchField’); … Continue reading

Posted in doctrine2, Expr* classes, Symfony2. jqgrid | Leave a comment