|
DataContextAddPageDefinedFieldInitialization Method
|
Adds field initialization, and optional validation, from a page-defined (e.g., loaded from database) parameter definition.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.218-beta
Syntax public void AddPageDefinedFieldInitialization(
string fieldName,
string initialValue,
string validationPattern = null,
string errorMessage = null
)
Public Sub AddPageDefinedFieldInitialization (
fieldName As String,
initialValue As String,
Optional validationPattern As String = Nothing,
Optional errorMessage As String = Nothing
)
public:
void AddPageDefinedFieldInitialization(
String^ fieldName,
String^ initialValue,
String^ validationPattern = nullptr,
String^ errorMessage = nullptr
)
member AddPageDefinedFieldInitialization :
fieldName : string *
initialValue : string *
?validationPattern : string *
?errorMessage : string
(* Defaults:
let _validationPattern = defaultArg validationPattern null
let _errorMessage = defaultArg errorMessage null
*)
-> unit
function AddPageDefinedFieldInitialization(fieldName, initialValue, validationPattern, errorMessage);
View SourceParameters
- fieldName String
- Target field name.
- initialValue String
- Javascript based initial value for field.
- validationPattern String (Optional)
- Reg-ex based validation pattern, if any.
- errorMessage String (Optional)
- Optional error message to display when pattern fails.
See Also