| 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
|