Commerce Server General - createVariant

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > December 2004 > createVariant





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 createVariant
CreateVariants method

2004-12-23, 5:51 pm

Hello,
i'm using Commerce server 2002 sp3.
i'm trying to create a product variant in my catalog using this:

CatalogManagerClass oCatMgr;
ProductCatalog oPrdCat ;
Product oPrd;
oCatMgr = new CatalogManagerClass();
ADODB.Recordset MyRs= new ADODB.Recordset();
oCatMgr.Initialize(Common.AppConfig.CommConnString,true);

when i run the above function i get an "invalid column name error".
when i run CreateVariant function with the parameter "SKU" instead of the
variant id (in my example "1234-1")meaning:
oPrd = oPrd.CreateVariant("SKU");
it doesnt return an error but it duplicates the parent line in the DB where
the column SKU filled with the id of the parent product (instead of null at
the parent product)
- so that i can't give my desired variant id myself, and cannot assign
multiple variants since its just keeps duplicating the line in the DB (but
assigns different oid numbers).
I desparetly need your quick answer.
Amir
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com