Dynamicweb 8 Documentation
Save Method (OrderLineField)
Example 

Saves this instance.
Syntax
'Declaration
 
Public Function Save() As Boolean
public bool Save()

Return Value

true if success; otherwise, false.
Example
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();
   }
}
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

OrderLineField Class
OrderLineField Members

Send Feedback