Class FormField
- Namespace
- Dynamicweb.DataManagement
- Assembly
- Dynamicweb.DataManagement.dll
Represents FormField
[Serializable]
public class FormField : DbObject
- Inheritance
-
FormField
- Inherited Members
Constructors
FormField()
Default constructor
public FormField()
Properties
Active
public bool Active { get; set; }
Property Value
Checked
public bool Checked { get; set; }
Property Value
DataTypeCode
public TypeCode DataTypeCode { get; set; }
Property Value
DefaultValue
public string DefaultValue { get; set; }
Property Value
Description
public string Description { get; set; }
Property Value
FormID
public int FormID { get; set; }
Property Value
Height
public int Height { get; set; }
Property Value
Label
public string Label { get; set; }
Property Value
MaxLength
public int MaxLength { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
OptionDataListID
public int OptionDataListID { get; set; }
Property Value
OptionKeyField
public string OptionKeyField { get; set; }
Property Value
OptionType
public FormField.OptionSourceType OptionType { get; set; }
Property Value
OptionValueField
public string OptionValueField { get; set; }
Property Value
Options
public FormFieldOptionCollection Options { get; set; }
Property Value
Required
public bool Required { get; set; }
Property Value
Sort
public int Sort { get; set; }
Property Value
SystemName
public string SystemName { get; set; }
Property Value
Type
public FormField.FieldType Type { get; set; }
Property Value
ValidationValue
public string ValidationValue { get; set; }
Property Value
Value
public string Value { get; set; }
Property Value
Width
public int Width { get; set; }
Property Value
Methods
Delete(int)
Deletes element of inner collection by id value
public override void Delete(int id)
Parameters
id
intIdentifier of element to be deleted
Fill(IDataReader)
Fills object with dataReader data
public override void Fill(IDataReader dataReader)
Parameters
dataReader
IDataReaderDataReader instance
FillRow(DataRow)
Fills row instance with data of current object
protected override void FillRow(DataRow row)
Parameters
row
DataRowDatRow object
GetAvailableTypes(TypeCode)
Gets list of available types
public static List<FormField.FieldType> GetAvailableTypes(TypeCode code)
Parameters
code
TypeCodeCode of type
Returns
GetFieldOptions()
Gets field options
public IEnumerable<IOption> GetFieldOptions()
Returns
- IEnumerable<IOption>
List of options
GetFormFieldById(int)
Gets form field by specified id
public static FormField GetFormFieldById(int id)
Parameters
id
intFormField identifier
Returns
- FormField
FormField instance
GetFormFields(int)
Gets fileds of form specified by id
public static FormFieldCollection GetFormFields(int formID)
Parameters
formID
intForm identifier
Returns
- FormFieldCollection
Collection of form fields
GetFormFieldsBySql(string)
Gets collection of form fields using sql comand
public static FormFieldCollection GetFormFieldsBySql(string sqlCommandText)
Parameters
sqlCommandText
stringText of sql commnd
Returns
- FormFieldCollection
Collection of form fields
GetTypesWithOptions()
Gets list with field types
public static List<FormField.FieldType> GetTypesWithOptions()