TXFABindingPredicate
Unit: HPDFXFA
Declaration
TXFABindingPredicate = function(Owner, Candidate: TXFANode;
const Source: AnsiString; JavaScript: Boolean;
var RemainingOperations: Integer; Deadline: Int64): Boolean of object;
Parameters
| Parameter | Meaning |
|---|---|
| Owner | The native binding owner whose bind declaration is being resolved |
| Candidate | The live native Data DOM candidate being tested |
| Source | The UTF-8 predicate source inside its delimiters |
| JavaScript | True for .(...) and False for FormCalc .[...] |
| RemainingOperations | The shared caller allowance, decremented by the evaluator; zero is exhausted and negative disables this caller allowance |
| Deadline | The 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