TXFABindingPredicate

Unit: HPDFXFA

Declaration

TXFABindingPredicate = function(Owner, Candidate: TXFANode;
  const Source: AnsiString; JavaScript: Boolean;
  var RemainingOperations: Integer; Deadline: Int64): Boolean of object;

Parameters

ParameterMeaning
OwnerThe native binding owner whose bind declaration is being resolved
CandidateThe live native Data DOM candidate being tested
SourceThe UTF-8 predicate source inside its delimiters
JavaScriptTrue for .(...) and False for FormCalc .[...]
RemainingOperationsThe shared caller allowance, decremented by the evaluator; zero is exhausted and negative disables this caller allowance
DeadlineThe caller's absolute deadline in its monotonic clock domain, or a negative value to disable elapsed-time checks

Behaviour

Return True to retain the candidate and False to exclude it; raise an exception to abort resolution

The synchronous callback must honour the shared operation allowance and deadline and must not replenish or disable a nonnegative allowance

The callback object and document must remain alive during resolution; callback mutations are governed by the caller's enclosing transaction rather than an automatic transaction created by this type

The runtime-provided evaluator applies its script configuration and budgets; JavaScript predicates require ScriptOptions.EnableJavaScript, whilst FormCalc predicates use their separate syntax and language path

Related APIs