Dynamicweb 8 Documentation
addObjeckList Method
Example 

The name.
The level.
Adds the object list.
Syntax
'Declaration
 
Public Sub addObjeckList( _ 
   ByVal name As String, _ 
   ByVal level As Integer _ 
) 
public void addObjeckList( 
   string name,
   int level 
)

Parameters

name
The name.
level
The level.
Example
class MyPage : System.Web.UI.Page
{
    private Dynamicweb.eCommerce.Prices.PriceMatrix price;

    private void Page_Load(System.Object sender, System.EventArgs e)
    {
        price = (Dynamicweb.eCommerce.Prices.PriceMatrix)Session["Ecom.Backend.PriceMatrix"];
    }

    public void generateMatrix()
    {
        System.Text.StringBuilder sb = new System.Text.StringBuilder();
        System.Collections.DictionaryEntry Item = default(System.Collections.DictionaryEntry);

        SortedList sortedList = new SortedList();
        if ((price.fieldList != null) && price.fieldList.Count > 0)
        {
            foreach (DictionaryEntry Item_loopVariable in price.fieldList)
            {
                Item = Item_loopVariable;
                if (Base.ChkNumber(Item.Value) > 0)
                {
                    sortedList.Add(Base.ChkNumber(Item.Value), Item.Key.ToString());
                }
            }
        }

        if ((sortedList != null) && sortedList.Count > 0)
        {
            foreach (DictionaryEntry Item_loopVariable in sortedList)
            {
                Item = Item_loopVariable;
                if (Base.ChkNumber(Item.Key) > 0)
                {
                    price.addObjeckList(Item.Value.ToString(), Base.ChkNumber(Item.Key));
                }
            }
        }
    }
}
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

PriceMatrix Class
PriceMatrix Members

Send Feedback