Click or drag to resize

DocumentItemSetFieldData(FieldItem, String) Method

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: 9.0.0.0-142fa9725
Syntax
C#
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

Boolean
true if value was applied successfully; otherwise, false.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if given field is a System field.
Remarks
Note: This will attempt to format the data to match the data type.
See Also