I am trying to implement a search form which would show results gotten from the db when given (a) keyword(s), then updating a grid or lister with the search results.
Only i'm a bit lost as to how to update the grid...

I've looked at some similar questions (ie: How to refresh grid after update from modal form in atk4? ) but I can't seem to get the grid to update after submitting my form.
code follows, any tips on what i'm doing wrong, or a better way to do this?
later i'd like the search and update several grids/listers from different db tabels, but if I'd get one to work that would already be a start... :)

Note setSource receives the table name, not a model name.
The array parameter to the quicksearch identifies which field(s) it will search by.

This results in adding a search field with a magnifying class icon so you enter the search text and it will search the fields specified and update the grid with rows matching that search.

If you want to change the search (e.g. to be case insensitive as it only does exact match as supplied), you can create a new version such as MySearch.php in yoursite/lib which extends QuickSearch and in the init, then override the applyDQ() function and include a strtolower() on the search string entered and LOWER(column) on the mysql table column.

yes, I'm using it in other places where I only need to do a quicksearch/filter in a single grid. But myy idea for the search form is to have it search keywords in various db tables and have the result displayed in different grids (one for each table), which is why I'm asing how to update the grid. Basically I guess what I'm trying to do is have a single 'Quicksearch' field which would search in various grids, I don't if that is posible. I haven't found an example on codepage that shows something similar...
–
gsteenssJul 16 '12 at 14:08