Dynamicweb 8 Documentation
Group Class
Members  Example 

Product group class
Object Model
Group ClassOrderLineFieldCollection ClassOrderLineField ClassOrderLineFieldCollection ClassOrderLineField ClassCategory ClassGroupFilterExecutionSettings ClassGroup.MetaData ClassOrderLineFieldCollection ClassOrderLineField ClassOrderLineFieldCollection ClassOrderLineField ClassGroupCollection ClassGroup ClassGroupCollection ClassGroup ClassProductGroupFieldValueCollection ClassProductGroupFieldValue ClassProductCollection ClassProduct ClassProductCollection ClassProduct ClassProductCollection ClassProduct ClassProductCollection ClassProduct ClassGroupCollection ClassGroup ClassGroupCollection ClassGroup ClassGroupCollection ClassGroup Class
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class Group 
[SerializableAttribute()] 
public class Group 
Example
class MyPage : System.Web.UI.Page
{
   private List<string> GetGroupsBreadcrumb(string shopFilter, string[] items)
   {
       List<string> labels = new List<string>();
       GroupCollection gc = default(GroupCollection);
       string shopId = shopFilter;

       if (string.IsNullOrEmpty(shopFilter) || string.Compare(shopFilter, "ALL", true) == 0)
       {
           gc = Group.GetGroupsByIDs(items.Skip(3));
           shopId = items[2];
       }
       else
       {
           gc = Group.GetGroupsByIDs(items.Skip(2));
       }

       Dynamicweb.eCommerce.Shops.Shop sh = new Dynamicweb.eCommerce.Shops.Shop(shopId);
       labels.Add(sh.Name);

       foreach (Group g in gc)
       {
           labels.Add(g.Name);
       }

       return labels;
   }
}
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Products.Group

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Group Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback