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
FieldID
public int FieldID { get; set; }
Property Value
IsDefault
public bool IsDefault { get; set; }
Property Value
Sort
public int Sort { get; set; }
Property Value
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
IDataReaderDataReader instance
FillRow(DataRow)
Fills DataRow with object data
protected override void FillRow(DataRow row)
Parameters
row
DataRowDatRow instance
GetFormFieldOptions(int)
Gets FormFieldOptions collection
public static FormFieldOptionCollection GetFormFieldOptions(int fieldId)
Parameters
fieldId
intField identifier
Returns
- FormFieldOptionCollection
Collection of FormFieldOptions
GetFormFieldOptionsBySql(string)
Gets form field options using specific sql command
public static FormFieldOptionCollection GetFormFieldOptionsBySql(string sqlCommandText)
Parameters
sqlCommandText
stringText 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)