Modify Custom Properties of a Product
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Modify Custom Properties of a Product

 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server
Author Message
Cambuston
Guest





Posted: Thu Sep 08, 2005 8:53 am    Post subject: Modify Custom Properties of a Product Reply with quote

Using the CatalogAgent assembly I'm able to create a base catalog, and add
categories and products to that catalog. I am still not able to modify the
custom properties of the added products.
Any help will be appreciated.
Thanks.
Luis.
Back to top
Cambuston
Guest





Posted: Thu Sep 08, 2005 8:52 pm    Post subject: RE: Modify Custom Properties of a Product Reply with quote

Vinayak,

Thank you for you answer.
I'm looking at the Feature Pack documentation but can not find the sample
to set the custom properties of the product.

Here is a sample of my code:

oCatalogContext = CatalogContext.Create(oCatalogServiceAgent, New
ConsoleDebugContext(DebugMode.Checked))
oBaseCatalog = oCatalogContext.CreateBaseCatalog(strCatalog, "Item_key",
"UPC_Case", "en-US", "en-US")
oCategory = oBaseCatalog.CreateCategory("category", strCategory)
oProduct = oBaseCatalog.CreateProduct("item", "01234567", 10.99, strCategory)

So far so good. I have a new catalog with a new category with a new product.
Now I need to modify the allowance or the buyer or any other of the custom
properties of the product. Can you point me to the specific help that shows
the sample to do that?

Thank you again!

""Vinayak Tadas[MSFT]"" wrote:

Quote:
Did you look at the sample provided with the Feature Pack documentation?
This has the code to set the custom properties of the product
Thanks
Vinayak Tadas
Microsoft
http://blogs.msdn.com/vinayakt

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


--------------------
Thread-Topic: Modify Custom Properties of a Product
thread-index: AcW0LY/fI2A1cOabTBq3O1jIsX0QFw==
X-WBNR-Posting-Host: 63.196.154.3
From: =?Utf-8?B?Q2FtYnVzdG9u?= <Cambuston@discussions.microsoft.com
Subject: Modify Custom Properties of a Product
Date: Wed, 7 Sep 2005 21:27:03 -0700
Lines: 6
Message-ID: <68367F93-E5E3-4580-BF97-E66F197C2055@microsoft.com
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.commerceserver.general:16756
X-Tomcat-NG: microsoft.public.commerceserver.general

Using the CatalogAgent assembly I'm able to create a base catalog, and add
categories and products to that catalog. I am still not able to modify the
custom properties of the added products.
Any help will be appreciated.
Thanks.
Luis
Back to top
Vinayak Tadas[MSFT]
Guest





Posted: Thu Sep 08, 2005 8:52 pm    Post subject: RE: Modify Custom Properties of a Product Reply with quote

Did you look at the sample provided with the Feature Pack documentation?
This has the code to set the custom properties of the product
Thanks
Vinayak Tadas
Microsoft
http://blogs.msdn.com/vinayakt

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


--------------------
Thread-Topic: Modify Custom Properties of a Product
thread-index: AcW0LY/fI2A1cOabTBq3O1jIsX0QFw==
X-WBNR-Posting-Host: 63.196.154.3
From: =?Utf-8?B?Q2FtYnVzdG9u?= <Cambuston@discussions.microsoft.com>
Subject: Modify Custom Properties of a Product
Date: Wed, 7 Sep 2005 21:27:03 -0700
Lines: 6
Message-ID: <68367F93-E5E3-4580-BF97-E66F197C2055@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.commerceserver.general:16756
X-Tomcat-NG: microsoft.public.commerceserver.general

Using the CatalogAgent assembly I'm able to create a base catalog, and add
categories and products to that catalog. I am still not able to modify the
custom properties of the added products.
Any help will be appreciated.
Thanks.
Luis.
Back to top
Vinayak Tadas[MSFT]
Guest





Posted: Fri Sep 09, 2005 8:52 pm    Post subject: RE: Modify Custom Properties of a Product Reply with quote

Did you see this section

The web service documentation (Program Files\Microsoft Commerce Server
2002\FP1\SDK\CS2002_AgentAPI.chm) has a code example in C# of how to do
this
in the "Using the Classes in the Catalog system" section.

What you need to do is
oCategory.Information.CatalogItems[0]["Your custom property"] = "value";
oCategory.Save()

Thanks
Vinayak Tadas
Microsoft
http://blogs.msdn.com/vinayakt

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


--------------------
Thread-Topic: Modify Custom Properties of a Product
thread-index: AcW0tekpwJHDF5/uSOell1jas8Ggdw==
X-WBNR-Posting-Host: 63.196.154.3
From: =?Utf-8?B?Q2FtYnVzdG9u?= <Cambuston@discussions.microsoft.com>
References: <68367F93-E5E3-4580-BF97-E66F197C2055@microsoft.com>
<DYBIHRKtFHA.3380@TK2MSFTNGXA02.phx.gbl>
Subject: RE: Modify Custom Properties of a Product
Date: Thu, 8 Sep 2005 13:43:04 -0700
Lines: 70
Message-ID: <ADA754CC-F712-4A6B-88A6-CFEEAD4A1E5A@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 8bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.commerceserver.general:16771
X-Tomcat-NG: microsoft.public.commerceserver.general

Vinayak,

Thank you for you answer.
I'm looking at the Feature Pack documentation but can not find the sample
to set the custom properties of the product.

Here is a sample of my code:

oCatalogContext = CatalogContext.Create(oCatalogServiceAgent, New
ConsoleDebugContext(DebugMode.Checked))
oBaseCatalog = oCatalogContext.CreateBaseCatalog(strCatalog, "Item_key",
"UPC_Case", "en-US", "en-US")
oCategory = oBaseCatalog.CreateCategory("category", strCategory)
oProduct = oBaseCatalog.CreateProduct("item", "01234567", 10.99,
strCategory)

So far so good. I have a new catalog with a new category with a new product.
Now I need to modify the allowance or the buyer or any other of the custom
properties of the product. Can you point me to the specific help that shows
the sample to do that?

Thank you again!

""Vinayak Tadas[MSFT]"" wrote:

Quote:
Did you look at the sample provided with the Feature Pack documentation?
This has the code to set the custom properties of the product
Thanks
Vinayak Tadas
Microsoft
http://blogs.msdn.com/vinayakt

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


--------------------
Thread-Topic: Modify Custom Properties of a Product
thread-index: AcW0LY/fI2A1cOabTBq3O1jIsX0QFw==
X-WBNR-Posting-Host: 63.196.154.3
From: =?Utf-8?B?Q2FtYnVzdG9u?= <Cambuston@discussions.microsoft.com
Subject: Modify Custom Properties of a Product
Date: Wed, 7 Sep 2005 21:27:03 -0700
Lines: 6
Message-ID: <68367F93-E5E3-4580-BF97-E66F197C2055@microsoft.com
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.commerceserver.general:16756
X-Tomcat-NG: microsoft.public.commerceserver.general

Using the CatalogAgent assembly I'm able to create a base catalog, and
add
categories and products to that catalog. I am still not able to modify
the
custom properties of the added products.
Any help will be appreciated.
Thanks.
Luis
Back to top
Luis Cambustón [MCS]
Guest





Posted: Sun Sep 11, 2005 12:51 am    Post subject: RE: Modify Custom Properties of a Product Reply with quote

Vinayak,

Thank you for all the help!

Luis Cambustón
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB