help with search : by product definition including subcategories
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > help with search : by product definition including subcategories




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    help with search : by product definition including subcategories  
drew


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-18-04 06:55 PM

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 ]



    Re: help with search : by product definition including subcategories  
Vinayak Tadas [MS]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:51 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register