DocumentItemSetFieldData Method (FieldItem, Object) | |
Sets the field data from an object value for the document. The object value must
match the fields data type or an exception will be thrown.
Namespace:
Compiled.EDD.Scripting
Assembly:
Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 7.6.1.3-5cb5c356
Syntax public bool SetFieldData(
FieldItem field,
Object fieldValue
)
Parameters
- field
- Type: Compiled.EDD.ScriptingFieldItem
The field to update. - fieldValue
- Type: SystemObject
The field value to apply to the field.
Return Value
Type:
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