03-22-04 02:34 AM
When you do a Search you can also specify a categoryName
CatalogSearch search ;
search.CatalogNames = "Catalogname";
search.CategoryName = "categoryname"
-- Other code
This will search only the descendants of this category. You can also specify
Recursive or non recursive search
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
"drew" <anonymous@discussions.microsoft.com> wrote in message
news:d43401c40aa2$9c5fcbc0$a501280a@phx.gbl...
> I am having trouble using the search objects on a
> particular query. I need to be able to search a category
> AND it's subcategories by a specific product definition.
>
> I can search a catgory with subcategories using the
> Catalog.Category.GetProducts and setting the recursive.
>
> I can do a product definition search by using the
> CatalogSearch object and setting the where clause.
>
> I can't find a way to do both in the same method?! Any
> ideas would be GREATLY appreciated.
>
> Thanks
[ Post a follow-up to this message ]
|