Dynamicweb 8 Documentation
FieldType Class
Members  Example 

Represents product field type object
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class FieldType 
[SerializableAttribute()] 
public class FieldType 
Example
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);
       }
   }
}
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Products.FieldType

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

FieldType Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback