DocumentItemSetFieldData(FieldItem, DateTime) Method |  |
Sets the field data from a DateTime value for the document. The field type must
match
Date,
Time, or
DateTime.
Namespace: Compiled.EDD.ScriptingAssembly: Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 9.0.0.0-142fa9725
Syntaxpublic bool SetFieldData(
FieldItem field,
DateTime fieldValue
)
Parameters
- field FieldItem
- The field to update.
- fieldValue DateTime
- The field value to apply to the field.
Return Value
Booleantrue if value was applied successfully,
false otherwise.
Exceptions| Exception | Condition |
|---|
| ArgumentException | Thrown if given field is a System field or the fieldValue does not match the field's type. |
See Also