Click or drag to resize

DocumentItemSetFieldData(FieldItem, Boolean) Method

Sets the field data from a bool value for the document. The field type must match Boolean.

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,
	bool fieldValue
)

Parameters

field  FieldItem
The field to update.
fieldValue  Boolean
The field value to apply to the field.

Return Value

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