KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: Asset on September 29, 2011, 12:24:07 pm

Title: Get All products regardless maxRows
Post by: Asset on September 29, 2011, 12:24:07 pm
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
Title: Re: Get All products regardless maxRows
Post by: trevor on September 29, 2011, 05:21:15 pm
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.
Title: Re: Get All products regardless maxRows
Post by: Asset on October 02, 2011, 07:15:12 am
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.
Title: Re: Get All products regardless maxRows
Post by: julie on October 02, 2011, 07:48:36 am
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.