Table of Contents

Class FormFieldOption

Namespace
Dynamicweb.DataManagement
Assembly
Dynamicweb.DataManagement.dll

Represents option of FormField

[Serializable]
public class FormFieldOption : DbObject, IOption
Inheritance
FormFieldOption
Implements
Inherited Members

Constructors

FormFieldOption()

Default constructor

public FormFieldOption()

Properties

Active

public bool Active { get; set; }

Property Value

bool

FieldID

public int FieldID { get; set; }

Property Value

int

IsDefault

public bool IsDefault { get; set; }

Property Value

bool

Sort

public int Sort { get; set; }

Property Value

int

Text

Gets or sets the text.

public string Text { get; set; }

Property Value

string

The text.

Value

Gets or sets the value.

public string Value { get; set; }

Property Value

string

The value.

Methods

Fill(IDataReader)

Fills current object with data of DataReader object

public override void Fill(IDataReader dataReader)

Parameters

dataReader IDataReader

DataReader instance

FillRow(DataRow)

Fills DataRow with object data

protected override void FillRow(DataRow row)

Parameters

row DataRow

DatRow instance

GetFormFieldOptions(int)

Gets FormFieldOptions collection

public static FormFieldOptionCollection GetFormFieldOptions(int fieldId)

Parameters

fieldId int

Field identifier

Returns

FormFieldOptionCollection

Collection of FormFieldOptions

GetFormFieldOptionsBySql(string)

Gets form field options using specific sql command

public static FormFieldOptionCollection GetFormFieldOptionsBySql(string sqlCommandText)

Parameters

sqlCommandText string

Text of sql command

Returns

FormFieldOptionCollection

Collection of form field options

SetDefault(int, int)

Sets default form field option

public static void SetDefault(int fieldID, int optionID)

Parameters

fieldID int

Field identifier

optionID int

Option identifier

To top