The "Fill Form" button on this sample can be dragged and dropped into your Designer Custom Object Library and reused on other forms to help populate those forms with random sample data. The script in the button simply looks through the form (xfa.form) finding each of the fields (using myNode.nodes.item(0).className) and filling in their values.
Filling in Forms with Sample Data
Categories:
2 Comments
Leave a comment
Categories
- Adobe AIR (7)
- Adobe LiveCycle 7.x (1)
- Adobe LiveCycle ES (88)
- Adobe LiveCycle Barcoded Forms ES (4)
- Adobe LiveCycle Data Services ES
- Adobe LiveCycle Designer ES (10)
- Adobe LiveCycle Digital Signatures ES (5)
- Adobe LiveCycle ES Connectors for ECM (2)
- Adobe LiveCycle Forms ES (3)
- Adobe LiveCycle Output ES (2)
- Adobe LiveCycle PDF Generator ES (6)
- Adobe LiveCycle Process Management ES (6)
- Adobe LiveCycle Production Print ES
- Adobe LiveCycle Reader® Extensions ES (4)
- Adobe LiveCycle Rights Management ES (2)
- Environment (15)
- Solution Accelerators (6)
- Tips and Tricks (28)
- Adobe LiveCycle Express (1)
- General Interest (41)
Monthly Archives
- December 2009 (5)
- November 2009 (5)
- October 2009 (5)
- September 2009 (3)
- August 2009 (2)
- July 2009 (7)
- June 2009 (4)
- May 2009 (5)
- April 2009 (3)
- March 2009 (9)
- February 2009 (7)
- January 2009 (4)
- December 2008 (2)
- November 2008 (8)
- October 2008 (10)
- September 2008 (8)
- August 2008 (2)
- July 2008 (4)
- June 2008 (4)
- May 2008 (3)
- April 2008 (7)
- March 2008 (10)
- February 2008 (6)
- January 2008 (8)
- December 2007 (13)
- November 2007 (6)
- October 2007 (8)
- September 2007 (1)
- August 2007 (2)
- July 2007 (1)
- June 2007 (1)
- May 2007 (1)
- April 2007 (2)
- February 2007 (3)
- January 2007 (3)
- December 2006 (4)
- November 2006 (5)
- October 2006 (5)
- September 2006 (1)
Pages
Search
About this Entry
This page contains a single entry by Lee Sutton published on December 18, 2007 2:46 PM.
LiveCycle - Quick and Dirty Server Sizing was the previous entry in this blog.
Invoke LiveCycle with Visual Basic .NET 2005/2008 is the next entry in this blog.
Find recent content on the main index or look in the archives to find all content.

Great tool for all versions of Designer!
You'll also find that LC Designer ES has built-in capabilities for generating sample data by going to the "File > Form Properties" command and choosing the Preview tab. There, you'll find a "Generate Preview Data" button. It has facilities to generate an XML data file taking into account fields as well as repeating subforms.
Excellent point Stefan. To add a little more detail to the reasons behind the "button", from the Barcoded Forms perspective it's important that fields be filled to their maximum capacity as well as allow the user to select which characters they wish to use when testing the form. Accented characters or double-byte character set characters can take up 4 times more space than an English language form.
In addition to the sample data, the code behind the button demonstrates to a developer how to traverse an entire document and the objects within that document. Which, come to think of it, I could demonstrate a little more affectively (new sample soon).