HPDFXFAResolveBoundDataNode

Unit: HPDFXFA

Declarations

function HPDFXFAResolveBoundDataNode(ADocument: TXFADocument;
  AFieldNode, ADataNode: TXFANode; ACreate: Boolean;
  out ABindingHandled: Boolean): TXFANode; overload;

function HPDFXFAResolveBoundDataNode(ADocument: TXFADocument;
  AFieldNode, ADataNode: TXFANode; ACreate: Boolean;
  out ABindingHandled: Boolean; var RemainingOperations: Integer;
  Deadline: Int64; DeadlineCheck: TXFABindingDeadlineCheck = nil): TXFANode; overload;

Parameters

ParameterMeaning
ADocumentThe native document owning the dataset and template packets
AFieldNodeThe template field containing its bind declaration or implicit name
ADataNodeThe current native data occurrence for implicit and compatibility relative bindings
ACreateAllows deterministic missing paths to create owned native elements with valid XML names
ABindingHandledReports an explicit none or dataRef binding handled by the resolver; a handled binding can still return nil
RemainingOperationsShared operation allowance, decremented for parsing, namespace checks and traversal; zero is exhausted and negative disables this caller allowance
DeadlineAbsolute deadline in the supplied callback's clock domain, or negative to disable elapsed-time checks
DeadlineCheckOptional synchronous object method; nil checks HPDFXFAMonotonicMilliseconds in HPDFXFAPlatform

Behaviour

The returned node belongs to ADocument and must not be freed by the caller; implicit field names are literal XML names, dots included

DataRef lookup supports $data and $record roots, descendant operators, wildcard and class selectors, explicit sibling indices, [*], escaped selector characters and configured JavaScript/FormCalc predicates; see Native XFA Bind SOM for examples and boundaries

A bare $record returns the actual record containing ADataNode; nil or data-root context selects the first data element record, while a foreign or detached context stays unresolved

Bare $data and !data return the data root itself; empty references, trailing dots and misleading root prefixes such as $recording stay unresolved, including when creation is enabled

Current-record ancestry checks verify actual parent and child membership, charge the caller allowance, poll its deadline and stop beyond 64 levels

A missing implicit value in a supplied repeated occurrence stays local to that occurrence; it does not fall back to another occurrence

A compatibility relative dataRef path also stays local when ADataNode is supplied; record and root fallback for relative references applies only when the caller has no occurrence context

Read-only lookup does not allocate data nodes; creation applies to deterministic named paths, while ambiguous wildcard, class and descendant searches remain lookup operations

An unresolved suffix or exception removes intermediate nodes allocated by this resolver call; previously existing nodes remain owned and unchanged

Traversal uses fixed limits of 64 selector segments, 64 element levels and 200000 charged steps per path traversal, in addition to the optional caller limits

Exhausted operation or elapsed-time budgets raise EHPDFXFAError; interactive edits and events restore their enclosing native transaction snapshot

Computed predicates use the document's BindingPredicate callback and return the first accepted target here; HPDFXFAResolveBoundDataNodes exposes the full ordered selection. Predicate paths never create missing data, even with ACreate=True. A standalone lookup does not establish the accepted-target metadata maintained by the Form runtime

Related APIs

Flatten and FormCalc current-record contexts use the same guarded record ownership rules