![]() |
sponsored links |
|
|
sponsored links
|
|
|
2
13th April 18:04
External User
Posts: 1
|
Bizdesk does not have the functionality to allow adding custom attributes
to the catalog. To add a custom attribute you should use the AddCatalogAttribute method on the catalogmanager object. See this MSDN link (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csvr2002/h tm/cs_rp_catalogmanager_iupd.asp) There is also a sample at the end of the link I am not sure if Bizdesk displays the custom attributes in the Edit Catalog page though. You should consider evaluating the new Feature Pack for commerce server. -------------------- From: azbij@hotmail.com (az bij) Newsgroups: microsoft.public.commerceserver.catalog Subject: Adding properties to catalogs Date: 23 Jul 2004 02:28:40 -0700 Organization: http://groups.google.com Lines: 15 Message-ID: <5f95f701.0407230128.2354ca9b@posting.google.com > NNTP-Posting-Host: 213.161.66.85 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1090574921 1783 127.0.0.1 (23 Jul 2004 09:28:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 23 Jul 2004 09:28:41 +0000 (UTC) Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s ul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad. net!postn ews2.google.com!not-for-mail Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.catalog:4842 X-Tomcat-NG: microsoft.public.commerceserver.catalog I want to add a couple of properties at the catalog level. I have already defined these and am using them for categories and products. I'm having trouble. I have exported the catalog and added an attribute to a Catalog node and then imported again, deleting existing data. This does not show up in Biz Desk. I have found only terse reference to this - "get your developer to add attributes by the Catalog API". Could somebody explain a bit more ********ly what I need to do please? thanks Andy 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. Thanks |
|
|
4
13th April 18:04
External User
Posts: 1
|
The property will appear in the CatalogName element in the xml file if it
has a value. I added two attributes to the catalog using CatalogManager object and set the values to the two attributes using CatalogManager.SetPropertyAttributes, exported the file. The xml file contains the following elements <AttributeDefinition AttributeType="CatalogAttribute" name="IsVisible" dataType="number" /> <AttributeDefinition AttributeType="CatalogAttribute" name="imagefile" dataType="string" MaxLength="50" /> <Catalog name="Catalog1" startDate="2004-05-06" endDate="2004-08-06" variantUID="Variantcode" productUID="ProductCode" DateChanged="2004-05-06T11:49:54" DefaultLanguage="en-US" ReportingLanguage="en-US" IsVisible="1" imagefile="c:\myfile.xml" languages="en-US"> I am not sure if Bizdesk allows you to display and edit user defined catalog attributes. -------------------- From: azbij@hotmail.com (az bij) Newsgroups: microsoft.public.commerceserver.catalog Subject: Re: Adding properties to catalogs Date: 26 Jul 2004 07:54:19 -0700 Organization: http://groups.google.com Lines: 89 Message-ID: <5f95f701.0407260654.220f7b48@posting.google.com > References: <5f95f701.0407230128.2354ca9b@posting.google.com > <NmKb91McEHA.836@cpmsftngxa06.phx.gbl> NNTP-Posting-Host: 213.161.66.85 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1090853659 18507 127.0.0.1 (26 Jul 2004 14:54:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 26 Jul 2004 14:54:19 +0000 (UTC) Path: cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTF EED01.phx.gbl!TK2MSFTNGP08 ..phx.gbl!news-out.cwix.com!newsfeed.cwix.com!newsfeed.icl.net!pr oxad.net!pos tnews2.google.com!not-for-mail Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.catalog:4853 X-Tomcat-NG: microsoft.public.commerceserver.catalog Thanks for your response. Unfortunately, my live environment (out of my control) is not using the feature pack, so I need to do without it. I'm still having difficulties. I can add an attribute using the CatalogManager and see this in the exported XML in the <CatalogSchema> node. What I need though is a new property showing up as <Catalog name="***" newproperty="yyy" startdate= etc... > for each <catalog> node Maybe I am using incorrect terminology for property and attribute so just to clarify: I want to hold an image for each catalog so that I can generate a landing page that lists catalog names alongside a relevant image. I also want to hold a couple of pieces of data like a "hidden" flag for each catalog. I also need to be able to update the image filename from BizDesk. Thanks very much for your help, Andy 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. Thanks |
|