on 06-16-2009 10:29 AM
Hi Gurus,
In catalog search, if i give * and search, the first action that is called is bigSearchAction. But in this action they are populating only the first 2 items i.e when i check the itemList object in this action, it contains only the first 2 products. But in the end just before displaying the page, using itemPage, they are displaying all the products. But i want all the products in the bigSearchAction itself. In which class or how can i get all the products. Which object contains all these products??
Any help is highly appreciated!!
Thank you,
Lakshman.
Hi,
Not sure if this could solve your problem, but you have a constructor in WebCatItemList:
public WebCatItemList(WebCatInfo theCatalog, IQuery query, boolean includeAccessories, boolean getAllItems)
A default call would be passing the catalog, your query, you can use 'false' in includeAccessories parameter and true in getAllItems.
This will return you a populated List with all the Products returned by your Query instead of just the first two items.
The default implementation uses inside WebCatItemList:
void populate() {
if (populateAll)
populate(-1);
else
populate(2);
}
where the int parameter is the 'upTo' variable.
Hope it helps,
Regards,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.