XFA SOM Selectors

Bind ref expressions support these SOM selector forms: relative and absolute dot paths, name[N] indexing, name[*] first-instance picks, descendant ..name searches (with index), intermediate bare-* wildcard segments and #class class tokens

Wildcards

An intermediate * segment descends into every child and resolves the remaining segments through the first matching branch, so $record.*.Qty reaches Qty through unnamed or differently named groups

FormCalc aggregate functions retain every match from [*] and descendant selectors in document order, whilst direct field binding continues to pick one stable node

Class tokens

#subform and #dataGroup pick container-class nodes, #field picks field-like nodes (those carrying <value> or <ui>) and any other #name matches custom data nodes by name; class tokens compose with indexing (#subform[2]) counting every node of that class in document order

Runtime predicate queries across Form remerge

With an enabled script provider, Version 2.1183.0 continues qualifying public resolveNode and resolveNodes queries when a computed predicate calls xfa.form.remerge()

The runtime relates each needed candidate and its actual ancestors to uniquely proved rebuilt Form instances, then resumes the remaining path and candidate sequence without repeating completed predicate effects

Relative, absolute and descendant paths retain their query context; repeated data-bound candidates retain their own data association, including queries that rebuild more than once

For a watcher with a sibling source container and a result field, a click script can query the rebuilt input through the candidate predicate

const matches = this.resolveNodes(
  "source.((function(model) { model.form.remerge(); " +
  "return +model.form.main.source.score.rawValue > 20; })(xfa)).input"
);
xfa.form.main.result.rawValue = String(matches.length);

The query result contains the current input instance; a user handle captured before rebuilding remains retired, including an explicitly captured predicate this

FormCalc .[...] predicates can continue their implicit candidate references through the same proved context; JavaScript .(...) predicates retain their separate language semantics

Queries, rebuilding, predicates and handlers share configured transaction operation and deadline budgets, and failures restore the surrounding XML and edit state

Version 2.1184.0 also recovers repeated unbound instances whose occurrence origins were recorded by native Form generation, including nested repeats that inherit the same parent data context and recordless repeats with no datasets

The runtime uses actual generation provenance rather than stored slot attributes or the current sibling position; a failed transaction restores that provenance with the XML so a later retry can continue safely

Existing unique-instance recovery remains available after saving and reloading a Form; arbitrary repeated imported or manually created instances without accepted native origins, generated virtual placements and property-query continuation remain separate compatibility work

Version 2.1185.0 also continues qualifying native FormCalc event queries with JavaScript disabled, retaining nested query frames at every rebuild and preserving retired explicit object handles

See provider-free input references, input-event reference continuation and script budgets

Stability

Unresolvable selectors keep the existing behaviour: the field flattens with a blank value and a warning names the exact expression

Node-set traversal remains bounded by the configured array, operation, elapsed-time, depth and value-byte limits