Click or drag to resize

DocumentItemSetFieldData Method (FieldItem, Int32)

Sets the field data from a int value for the document. The field type must match Number.

Namespace:  Compiled.EDD.Scripting
Assembly:  Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 7.6.1.3-5cb5c356
Syntax
C#
public bool SetFieldData(
	FieldItem field,
	int fieldValue
)

Parameters

field
Type: Compiled.EDD.ScriptingFieldItem
The field to update.
fieldValue
Type: SystemInt32
The field value to apply to the field.

Return Value

Type: Boolean
true if value was applied successfully, false otherwise.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if given field is a System field or the fieldValue does not match the field's type.
See Also