Click or drag to resize

PFExternalDataBinderBindValue Method (PFItem, String, Object, PFExternalConnection_Binding_PrincipalType, String)

Binds a value in the specified field.

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public PFDataBindResult BindValue(
	PFItem item,
	string fieldName,
	Object value,
	PFExternalConnection_Binding_PrincipalType userValuePrincipalType = PFExternalConnection_Binding_PrincipalType.Users,
	string choiceCustomTargetFieldName = null
)

Parameters

item
Type: Packflow.CorePFItem
The item receiving the value.
fieldName
Type: SystemString
Name of the field.
value
Type: SystemObject
The value.
userValuePrincipalType (Optional)
Type: Packflow.CorePFExternalConnection_Binding_PrincipalType
For user fields, specifies which kind of principals are found in the value (user, group, role). Default values: users.
choiceCustomTargetFieldName (Optional)
Type: SystemString
When binding a choice field, allows to use another field (in the target content) as a key to match target items.

Return Value

Type: PFDataBindResult
Object containing the final (converted value), the field and a boolean indicating whether the value has been assigned or not.
Exceptions
ExceptionCondition
ObjectNotFoundException
See Also