• Welcome to KonaKart Community Forum. Please login or sign up.
 

Get All products regardless maxRows

Started by Asset, September 29, 2011, 12:24:07 pm

Previous topic - Next topic

Asset

Dear All,

I want to retrieve ALL products according to some criteria regardless the number of max rows.

I am using "kkAppEng.getProductMgr().searchForProducts(ps)". This method always return 20 records and make paging. I wnat to get the whole records.


Appreciate your quick response

trevor

You can configure this in the admin app. The section to look at is Configuration >> Maximum Values, and the variable to set is labelled "Search Results" which defaults to 20.

Asset

I know that I can change the number returned from the search results in the admin configuration. But what I am asking if I want to retrieve ALL the products, what is the value I have to set in Maximum Values?? i tried -1 but it didn't accept it.

julie

You have to set a limit. If you want all products, just put in a high number, bearing in mind that they will all be transferred to your browser and so could provide a slow user experience if there are too many.