DocumentItemSetFieldData Method (FieldItem, String) | |
Sets the field data from a string value for the document.
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,
string fieldValue
)
Parameters
- field
- Type: Compiled.EDD.ScriptingFieldItem
The field to update. - fieldValue
- Type: SystemString
The field value to apply to the field.
Return Value
Type:
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