|
Home > Archive > Commerce Server General > March 2004 > Product Search - Help!!!
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 |
Product Search - Help!!!
|
|
| Mike TT 2004-03-18, 1: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
| |
| Vinayak Tadas [MS] 2004-03-18, 1: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
|
|
|
|
|