I created a custom module that creates a new shop via the DataManager in your API, my code looks like this.
'''''
DataManager DBM_CreateShop = new DataManager();
DataSet DS_CreateShop = DBM_CreateShop.getDataSet( "Dynamicweb.mdb", "SELECT * FROM EcomShops" );
DataRow NewShopRow = DS_CreateShop.Tables[ 0 ].NewRow();
DestinationShopID = "SHOP100";
NewShopRow[ "ShopID" ] = DestinationShopID;
NewShopRow[ "ShopName" ] = NewShopName;
NewShopRow[ "ShopCreated" ] = DateTime.Now;
NewShopRow[ "ShopDefault" ] = false;
NewShopRow[ "ShopIcon" ] = "";
// Add new row to SHOPS dataset
DS_CreateShop.Tables[ 0 ].Rows.Add( NewShopRow );
// Save data.
DBM_CreateShop.updateDataSet( DS_CreateShop );
// Clean up
DBM_CreateShop.Dispose();
'''''
And it works like a charm, the shop is created and when i look in the database its created as it should.
But when i go into the eCommerce my shop isn't showing in the Product Catalog along with all the other shops.
How do i update the list in my CustomModule?