Table of Contents

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

bool

Checked

public bool Checked { get; set; }

Property Value

bool

DataTypeCode

public TypeCode DataTypeCode { get; set; }

Property Value

TypeCode

DefaultValue

public string DefaultValue { get; set; }

Property Value

string

Description

public string Description { get; set; }

Property Value

string

FormID

public int FormID { get; set; }

Property Value

int

Height

public int Height { get; set; }

Property Value

int

Label

public string Label { get; set; }

Property Value

string

MaxLength

public int MaxLength { get; set; }

Property Value

int

Name

public string Name { get; set; }

Property Value

string

OptionDataListID

public int OptionDataListID { get; set; }

Property Value

int

OptionKeyField

public string OptionKeyField { get; set; }

Property Value

string

OptionType

public FormField.OptionSourceType OptionType { get; set; }

Property Value

FormField.OptionSourceType

OptionValueField

public string OptionValueField { get; set; }

Property Value

string

Options

public FormFieldOptionCollection Options { get; set; }

Property Value

FormFieldOptionCollection

Required

public bool Required { get; set; }

Property Value

bool

Sort

public int Sort { get; set; }

Property Value

int

SystemName

public string SystemName { get; set; }

Property Value

string

Type

public FormField.FieldType Type { get; set; }

Property Value

FormField.FieldType

ValidationValue

public string ValidationValue { get; set; }

Property Value

string

Value

public string Value { get; set; }

Property Value

string

Width

public int Width { get; set; }

Property Value

int

Methods

Delete(int)

Deletes element of inner collection by id value

public override void Delete(int id)

Parameters

id int

Identifier of element to be deleted

Fill(IDataReader)

Fills object with dataReader data

public override void Fill(IDataReader dataReader)

Parameters

dataReader IDataReader

DataReader instance

FillRow(DataRow)

Fills row instance with data of current object

protected override void FillRow(DataRow row)

Parameters

row DataRow

DatRow object

GetAvailableTypes(TypeCode)

Gets list of available types

public static List<FormField.FieldType> GetAvailableTypes(TypeCode code)

Parameters

code TypeCode

Code of type

Returns

List<FormField.FieldType>

List of field types

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 int

FormField identifier

Returns

FormField

FormField instance

GetFormFields(int)

Gets fileds of form specified by id

public static FormFieldCollection GetFormFields(int formID)

Parameters

formID int

Form 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 string

Text of sql commnd

Returns

FormFieldCollection

Collection of form fields

GetTypesWithOptions()

Gets list with field types

public static List<FormField.FieldType> GetTypesWithOptions()

Returns

List<FormField.FieldType>

List of field types

To top