LeiaLeia

Hi,

I have a question about conversion between these two CatalogItem objects: Catalog.CatalogItemsDataSet.CatalogItem and Catalog.CatalogItem. Is there a method to convert them back and forth

Thanks,

Leia



Re: Commerce Server 2007 Catalog.CatalogItemsDataSet.CatalogItem and Catalog.CatalogItem

Max Akbar - MSFT

CatalogItem is an abstract class that both category and product inherit. Take a look at Catalog Objects Architecture. CatalogItem allows access to underlaying DataTable.

-Max






Re: Commerce Server 2007 Catalog.CatalogItemsDataSet.CatalogItem and Catalog.CatalogItem

dmsy

Using CatalogItemsDataSet.CatalogItem, is there a way to get the Variants If I have a ProductFamily, I can get a collection of Variants, but there is no such property with CatalogItemsDataSet.CatalogItem.



Re: Commerce Server 2007 Catalog.CatalogItemsDataSet.CatalogItem and Catalog.CatalogItem

Sudha Raghavan - MSFT

Variant does not derive from CatalogItem and hence you cannot get a variant as a CatalogItemsDataSet.CatalogItem. However you cna get the DataRow for the variant by using the Variant.DataRow property.



Re: Commerce Server 2007 Catalog.CatalogItemsDataSet.CatalogItem and Catalog.CatalogItem

Nat Coxall

What about if I want to get a list of the Parent Categories for a CatalogItem. However, when I bind it currenlty, it is a CatalogItemsDataSet.CatalogItem which doesn't offer the CatalogItem.ParentCategories() method. What is the best method of retrieving a list of Parent Categories





Re: Commerce Server 2007 Catalog.CatalogItemsDataSet.CatalogItem and Catalog.CatalogItem

Nat Coxall

I'm trying to return the list of parent categories for a CatalogItemsDataSet.CatalogItem. I've seen that the Catalog.CatalogItem class has the ParentCategories() method to do this. Is it best to convert to this class (if that's possible) or is there a better method for doing this