Here’s a quick observation you might find useful: The order in which form objects are initialized is “field and depth-first” according to the document order (the top-down order in which they appear in the Hierarchy palette in LiveCycle Designer). This means that fields inside a subform are initialized before the subform itself is initialized. When you think about it, it makes sense since this means that in a subform’s Initialize event, you always have access to properly-initialized child form objects. You can read more about event execution order in the LiveCycle Designer Scripting Basics document (page 24) as well as in the
XFA Spec (page 353 in version 2.7).
Say your form object hierarchy looked like this (in the Hierarchy palette in Designer):
The fields and subforms would get initialized in the following order:
To clarify, this is the order (note that text objects don’t get initialized just like squares, circles and images wouldn’t — image fields would, however):
Minimum Requirements: I created this form in Designer 8.1.1 SP2 and tested it in Acrobat Pro 8.1.2.
Posted by Stefan Cameron on May 9th, 2008
Filed under Events,Scripting,Tutorials
Both comments and pings are currently closed.