Dynamicweb.eCommerce.Orders Namespace > OrderLineField Class : Save Method |
class OrderLineField_EditPage : System.Web.UI.Page { private void SaveOrderLineField() { if (Base.ChkBoolean(IsNewOrderLineField.Value)) { foreach (OrderLineField orderLineField in Dynamicweb.eCommerce.Common.Application.OrderLineFields) { if (orderLineField.SystemName == SystemNameText.Text) { SaveError.Value = "DuplicateSystemName"; return; } } } OrderLineField field = new OrderLineField(SystemNameText.Text, NameText.Text, Base.ChkInteger(LengthText.Text)); field.Save(); Dynamicweb.eCommerce.Common.Application.KillOrderLineFields(); } }
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