Methods | DocumentItem.SetFieldData(FieldItem, String) Method
Sets the field data from a string value for the document.
Syntax
C#
Copy
public bool SetFieldData(
FieldItem field,
string fieldValue
)
Parameters
field FieldItem
The field to update.
fieldValue String
The field value to apply to the field.
Return Value
Booleantrue if value was applied successfully; otherwise, false.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | Thrown if given field is a System field. |
Remarks
Note: This will attempt to format the data to match the data type.
See Also
Reference
DocumentItem Class
SetFieldData Overload
Compiled.EDD.Scripting Namespace