Dynamicweb.eCommerce.Orders Namespace > OrderState Class > UpdateDefault Method : UpdateDefault(Int32,Boolean,String) Method |
true
set default to true.
'Declaration
Public Overloads Sub UpdateDefault( _ ByVal orderFlowId As Integer, _ ByVal SetDefaultTo As Boolean, _ Optional ByVal IDStr As String _ )
public void UpdateDefault( int orderFlowId, bool SetDefaultTo, string IDStr )
true
set default to true.class MyPage : System.Web.UI.Page { private void SaveButton_Click(System.Object sender, System.EventArgs e) { String osID = Base.ChkString(HttpContext.Current.Request.QueryString("StateID")); OrderState os = new OrderState(osID); if( IsDefault.Checked ) os.UpdateDefault(False) os.Name = NameStr.Text; os.Description = DescrStr.Text; os.IsDefault = IsDefault.Checked; os.DontUseInstatistics = DontUseInstatistics.Checked; os.Save(os.ID); } }
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