Dynamicweb.eCommerce.Products Namespace : FieldTypeCollection Class |
'Declaration
<DefaultMemberAttribute("Item")> <SerializableAttribute()> Public Class FieldTypeCollection Inherits System.Collections.ObjectModel.Collection(Of FieldType)
[DefaultMemberAttribute("Item")] [SerializableAttribute()] public class FieldTypeCollection : System.Collections.ObjectModel.Collection<FieldType>
class MyPage : System.Web.UI.Page { public void RenderOrderFieldValues(Dynamicweb.eCommerce.Orders.Order Order, ref Dynamicweb.Rendering.Template Template) { FieldTypeCollection fieldTypes = FieldType.getFieldTypes(); foreach (Dynamicweb.eCommerce.Orders.OrderFieldValue ofv in Order.OrderFieldValues) { string outputClean = Base.ChkString(ofv.Value); string output = ""; FieldType ft = fieldTypes.GetFieldType(ofv.OrderField.TypeID); switch (ft.DWName.ToLower()) { case "text": case "integer": case "double": //TODO: insert your code here break; case "largetext": //TODO: insert your code here break; case "checkbox": //TODO: insert your code here break; case "date": case "datetime": //TODO: insert your code here break; case "link": //TODO: insert your code here break; case "filemanager": //TODO: insert your code here break; default: break; } Template.SetTag(ofv.OrderField.TemplateName, output); Template.SetTag(ofv.OrderField.TemplateName + ".Clean", outputClean); Template.SetTag(ofv.OrderField.SystemName + ".Name", ofv.OrderField.Name); } } }
System.Object
System.Collections.ObjectModel.Collection<T>
Dynamicweb.eCommerce.Products.FieldTypeCollection
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