Dynamicweb 8 Documentation
OrderState Class
Members  Example 

Represents information about order state.
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class OrderState 
[SerializableAttribute()] 
public class OrderState 
Example
class MyPage : System.Web.UI.Page
{
 
   private void BuildOrderStateList()
   {
       //Set Order states
       OrderStateCollection orderStates = Dynamicweb.eCommerce.Common.Application.OrderStates;
       OrderStateList.Items.Clear();

       foreach( OrderState orderState in orderStates )
       {
           //Add to context menu
           ContextMenuButton contextOrderState = new ContextMenuButton();
           contextOrderState.Image = Icons.Icon.Type.Check;
           contextOrderState.OnClientClick = String.Format("setOrderState('{0}');", orderState.ID);
           contextOrderState.Text = orderState.Name;
           contextOrderState.DoTranslate = ContextMenuButton.TranslateStates.False;
           ContextSetOrderState.ChildItems.Add(contextOrderState);

           //Add to dropdown in ribbon
           OrderStateList.Items.Add(New ListItem(orderState.Name, orderState.ID));
       }
 
       OrderStateListView.Visible = true;
       }
   }
}
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Orders.OrderState

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

OrderState Members
Dynamicweb.eCommerce.Orders Namespace

Send Feedback