Product Search - Help!!!
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 > Product Search - Help!!!




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

    Product Search - Help!!!  
Mike TT


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


 
03-18-04 06:55 PM

Hi All,

I am dead stuck. I want to use CatalogManager.Query or
CatalogManager.Search for searching a product. I have
tried all options but the recordcount property is always
zero. Can some please show an example that is working and
implemented.

Following is the last version of the code after several
attempts:
Dim cm As CatalogManager = New CatalogManager
cm.Initialize(commerceSite, False)
Dim product As _Recordset
1) product = cm.Query("ProductID='TT111'", catalogName,
catalogClassType, propertiesToReturn)
2) product = cm.Search("[ProductID]=N'TT111'", ,
catalogName, catalogClassType, propertiesToReturn)

Also can someone show how to find a product given multiple
search parameters.

Thanks and Regards,
Mike





[ Post a follow-up to this message ]



    Re: Product Search - Help!!!  
Vinayak Tadas [MS]


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


 
03-18-04 06:55 PM

What is the catalogClasstype you are passing
Also can you try
Set productCatalog = cm.GetCatalog(catalogname)
set product = productCatalog.GetProduct("TT111")
productProperties =  product.GetProductProperties
to see if you get back the results

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
"Mike TT" <tkthatikonda@hotmail.com> wrote in message
news:c53f01c40909$a07515c0$a501280a@phx.gbl...
> Hi All,
>
> I am dead stuck. I want to use CatalogManager.Query or
> CatalogManager.Search for searching a product. I have
> tried all options but the recordcount property is always
> zero. Can some please show an example that is working and
> implemented.
>
> Following is the last version of the code after several
> attempts:
> Dim cm As CatalogManager = New CatalogManager
> cm.Initialize(commerceSite, False)
> Dim product As _Recordset
> 1) product = cm.Query("ProductID='TT111'", catalogName,
> catalogClassType, propertiesToReturn)
> 2) product = cm.Search("[ProductID]=N'TT111'", ,
> catalogName, catalogClassType, propertiesToReturn)
>
> Also can someone show how to find a product given multiple
> search parameters.
>
> Thanks and Regards,
> Mike







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:34 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