lockType

Specifies the type of locking functionality to use with the data source.

Syntax

Reference_Syntax.lockType = "unspecified | readOnly | pessimistic | optimistic | batchOptimistic"

Values

Type

Values

String

  • unspecified (default)

  • readOnly

  • pessimistic

  • optimistic

  • batchOptimistic

Does not specify a type of lock.

  • readOnly

  • pessimistic

  • optimistic

  • batchOptimistic

Indicates read-only records. Data cannot be altered.

  • pessimistic

  • optimistic

  • batchOptimistic

Records are locked at the data source immediately after editing.

  • optimistic

  • batchOptimistic

Records are locked only when a user-instigated update of the data occurs.

  • batchOptimistic

Indicates optimistic batch updates. This is required for batch update mode.

Applies to

Version

XFA 2.1

Examples

In these examples, Titles represents the data connection name.

JavaScript

xfa.sourceSet.Titles.nodes.item(1).query.recordSet.lockType = "optimistic"; 

FormCalc

xfa.sourceSet.Titles.nodes.item(1).query.recordSet.lockType = "optimistic" 

// Ethnio survey code removed