Dynamicweb 8 Documentation
OrderLineFieldGroupRelation Class
Members  Example 

Represents information about an order line field group relations.
Syntax
'Declaration
 
Public Class OrderLineFieldGroupRelation 
public class OrderLineFieldGroupRelation 
Example
class MyPage : System.Web.UI.Page
{
 
    private void SaveGroupOrderlineRelations()
    {
     	//Save Orderline field relations. First delete all, then save.
     	OrderLineFieldGroupRelation.DeleteAll(groupId);
     	int rowCount = Base.ChkInteger(Base.Request["OrderLineFieldCount"]);
     	for (int i = 0; i < rowCount; i++)
     	{
     		string fieldSystemName = Base.ChkString(Base.Request[string.Format("OrderLineFieldHidden_{0}", i)]);
     		if (fieldSystemName != "")
     		{
     			OrderLineFieldGroupRelation relation = new OrderLineFieldGroupRelation(fieldSystemName, groupId);
     			relation.Save();
     		}
     	}
     	grp.ClearOrderLineFieldCache();
    }
}
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Orders.OrderLineFieldGroupRelation

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

OrderLineFieldGroupRelation Members
Dynamicweb.eCommerce.Orders Namespace

Send Feedback