createVariant
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > createVariant




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    createVariant  
CreateVariants method


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-23-04 10: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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:17 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register