November 6, 2009, 1:56am
I have a search function that returns a list of search results, I am using cLinkPager to control the page. But it doesn’t work as the way it should be, when I click on the second page it just return to the default control page. I konw it may need to pass the search parameters to the page link, but can’t find the method in cLinkPager to do it. Any helps would be appreciated. Thanks.
November 6, 2009, 11:22am
You can save the search params in globalState
and then use them in your controller’s search action
November 19, 2009, 12:45am
Thanks guys! These help!
But now I have another problem:
I have the following code to search across different tables:
criteria->condition = $condition;
but then the page size is not working, pageSize=10, page1 shows 8 results, page2 shows 1.
January 12, 2010, 5:08am
The page works fine if I get rid of together() but then it can’t find column in records.record_name, saying unknown column for the query…
January 12, 2010, 5:10am
even if I use alias:
$condition.=‘record_name.name ilike …’