|
Home > Archive > Commerce Server General > April 2004 > CS 2002 product collection search options
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
CS 2002 product collection search options
|
|
| James 2004-04-28, 11:36 am |
| Hi,
I am trying to specify the order of products when displayed using the
ProductListControl. Problem is that it doesn't use the search options
i supply, any suggestions much appreciated.
I am specifying the relevant search options using the code below:
ProductCollection productList = new ProductCollection(catalogName,
categoryName, null);
CatalogSearchOptions searchOptions = new CatalogSearchOptions();
searchOptions.ClassTypes = CatalogClassTypes.ProductFamilyClass;
searchOptions.SortProperty = "Name";
searchOptions.SortAscending = true;
productList.SearchOptions = searchOptions;
TIA
Luke
| |
| Vinayak Tadas [MS] 2004-04-28, 9:35 pm |
| What method are you trying to call?
Thanks
Vinayak Tadas
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Get Secure! For more info visit http://www.microsoft.com/security. Please
reply to the newsgroups only. Thanks
"James" <luke_james32@hotmail.com> wrote in message
news:d128285e.0404280658.3770ff29@posting.google.com...
> Hi,
>
> I am trying to specify the order of products when displayed using the
> ProductListControl. Problem is that it doesn't use the search options
> i supply, any suggestions much appreciated.
>
> I am specifying the relevant search options using the code below:
>
>
> ProductCollection productList = new ProductCollection(catalogName,
> categoryName, null);
>
> CatalogSearchOptions searchOptions = new CatalogSearchOptions();
>
> searchOptions.ClassTypes = CatalogClassTypes.ProductFamilyClass;
> searchOptions.SortProperty = "Name";
> searchOptions.SortAscending = true;
>
> productList.SearchOptions = searchOptions;
>
>
> TIA
>
> Luke
|
|
|
|
|