<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Importing Data in Acrobat</title>
	<atom:link href="http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/</link>
	<description>Building intelligent forms using Adobe LiveCycle Designer</description>
	<lastBuildDate>Thu, 19 Jan 2012 16:32:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/#comment-5380</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 15 Nov 2010 23:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=32#comment-5380</guid>
		<description>@Erick,

Submitting data is easy and not generally impeded but importing data is only permitted under certain circumstances. Please see the table in this post for the configurations necessary to allow data import into a PDF (unless you&#039;re manually generating the PDF using some PHP library that may exist somewhere).</description>
		<content:encoded><![CDATA[<p>@Erick,</p>
<p>Submitting data is easy and not generally impeded but importing data is only permitted under certain circumstances. Please see the table in this post for the configurations necessary to allow data import into a PDF (unless you&#8217;re manually generating the PDF using some PHP library that may exist somewhere).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erick</title>
		<link>http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/#comment-5379</link>
		<dc:creator>Erick</dc:creator>
		<pubDate>Thu, 11 Nov 2010 22:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=32#comment-5379</guid>
		<description>I have liveCycle Designer 8.0 and MSSQL 2005 and I&#039;m using  php.
 I&#039;m traig to save the submit data in MSSQL ussing php but when view save data i will like to fill a pdf file what is my best option???</description>
		<content:encoded><![CDATA[<p>I have liveCycle Designer 8.0 and MSSQL 2005 and I&#8217;m using  php.<br />
 I&#8217;m traig to save the submit data in MSSQL ussing php but when view save data i will like to fill a pdf file what is my best option???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/#comment-5378</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 18 Oct 2010 17:11:52 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=32#comment-5378</guid>
		<description>@Jason,

See my article on &lt;a href=&quot;http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/&quot; rel=&quot;nofollow&quot;&gt;restoring the state of your form&lt;/a&gt;.

Also, when submitting your form, you should be using a submit button from the &quot;Object Library &gt; Standard panel&quot;. Insert a &quot;Button&quot; object and set its &quot;Object palette &gt; Field tab &gt; Control Type property&quot; to &quot;Submit&quot;. Then set the &quot;Object palette &gt; Submit tab &gt; Submit As property&quot; to &quot;PDF&quot; to submit the entire PDF.

Note that submitting the entire PDF can only be done when running the form with Acrobat (as opposed to the free Reader) unless you extend the PDF to enable this functionality in Reader using &lt;a href=&quot;http://www.adobe.com/products/livecycle/readerextensions/&quot; rel=&quot;nofollow&quot;&gt;Adobe LiveCycle Reader Extensions ES2&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>@Jason,</p>
<p>See my article on <a href="http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/" rel="nofollow">restoring the state of your form</a>.</p>
<p>Also, when submitting your form, you should be using a submit button from the &#8220;Object Library > Standard panel&#8221;. Insert a &#8220;Button&#8221; object and set its &#8220;Object palette > Field tab > Control Type property&#8221; to &#8220;Submit&#8221;. Then set the &#8220;Object palette > Submit tab > Submit As property&#8221; to &#8220;PDF&#8221; to submit the entire PDF.</p>
<p>Note that submitting the entire PDF can only be done when running the form with Acrobat (as opposed to the free Reader) unless you extend the PDF to enable this functionality in Reader using <a href="http://www.adobe.com/products/livecycle/readerextensions/" rel="nofollow">Adobe LiveCycle Reader Extensions ES2</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/#comment-5377</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 18 Oct 2010 17:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=32#comment-5377</guid>
		<description>@Mayrinck,

See my article on &lt;a href=&quot;http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/&quot; rel=&quot;nofollow&quot;&gt;restoring the state of your form&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>@Mayrinck,</p>
<p>See my article on <a href="http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/" rel="nofollow">restoring the state of your form</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/#comment-5376</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 12 Oct 2010 22:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=32#comment-5376</guid>
		<description>Hi Stefan,

I&#039;m having the same problem as Mayrinck, in that when saving or submitting a form, dynamic fields disappear.

Once a user has completed the form, they have the option to save, print and/or submit by email (as a PDF).  Each button uses JS code to first set all fields except the other buttons to &quot;readonly&quot; before executing the specific action.  The print button works fine, but using the save or submit buttons results in the dynamic fields disappearing from the file that is saved or added to an email.

I&#039;m using &quot;app.execMenuItem(&quot;SaveAs&quot;)&quot; in the mouseup function of the save button, and &quot;event.target.submitForm({cURL: cEmailURL, cSubmitAs:&quot;PDF&quot;, cCharSet:&quot;utf-8&quot;});&quot; for the submit button.

The form properties are set to Dynamc XML, not static PDF.

Any suggestions as to what I&#039;m doing wrong?

Regards,
Jason</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I&#8217;m having the same problem as Mayrinck, in that when saving or submitting a form, dynamic fields disappear.</p>
<p>Once a user has completed the form, they have the option to save, print and/or submit by email (as a PDF).  Each button uses JS code to first set all fields except the other buttons to &#8220;readonly&#8221; before executing the specific action.  The print button works fine, but using the save or submit buttons results in the dynamic fields disappearing from the file that is saved or added to an email.</p>
<p>I&#8217;m using &#8220;app.execMenuItem(&#8220;SaveAs&#8221;)&#8221; in the mouseup function of the save button, and &#8220;event.target.submitForm({cURL: cEmailURL, cSubmitAs:&#8221;PDF&#8221;, cCharSet:&#8221;utf-8&#8243;});&#8221; for the submit button.</p>
<p>The form properties are set to Dynamc XML, not static PDF.</p>
<p>Any suggestions as to what I&#8217;m doing wrong?</p>
<p>Regards,<br />
Jason</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mayrinck</title>
		<link>http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/#comment-5375</link>
		<dc:creator>Mayrinck</dc:creator>
		<pubDate>Mon, 11 Oct 2010 12:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=32#comment-5375</guid>
		<description>HI Stefan,

I´m creating a interactive form and i´m getting a problem when save the pdf.
Basically i have a subform which i can create new instances and populate their fields, but when I save it, the new instances not appear more... My question is: How to save the dynamic objects inside the PDF ?

Best Regards.</description>
		<content:encoded><![CDATA[<p>HI Stefan,</p>
<p>I´m creating a interactive form and i´m getting a problem when save the pdf.<br />
Basically i have a subform which i can create new instances and populate their fields, but when I save it, the new instances not appear more&#8230; My question is: How to save the dynamic objects inside the PDF ?</p>
<p>Best Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/#comment-5374</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 24 Aug 2010 12:14:48 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=32#comment-5374</guid>
		<description>@Chris,

I&#039;m afraid that&#039;s beyond what I know.</description>
		<content:encoded><![CDATA[<p>@Chris,</p>
<p>I&#8217;m afraid that&#8217;s beyond what I know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/#comment-5373</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 24 Aug 2010 11:47:44 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=32#comment-5373</guid>
		<description>@hellary,

Yes, xfa.host.importData() will cause the form to be re-initialized with the new data and script variable values are not retained. Since you don&#039;t bind anything directly to the data, I would suggest &lt;a href=&quot;http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/&quot; rel=&quot;nofollow&quot;&gt;adding a node to the data to remember the state&lt;/a&gt;. Once loaded, you can remove the special node so that it doesn&#039;t remain in the form&#039;s data (if you don&#039;t want it there).

As for the number of records, I don&#039;t see anything wrong with what you&#039;re doing. You could also try the following to see if you get better results:

&lt;pre&gt;&lt;code&gt;var entries = xfa.datasets.data.form1.entry.all;&lt;/code&gt;&lt;/pre&gt;

That will get all nodes with the name &quot;entry&quot;.</description>
		<content:encoded><![CDATA[<p>@hellary,</p>
<p>Yes, xfa.host.importData() will cause the form to be re-initialized with the new data and script variable values are not retained. Since you don&#8217;t bind anything directly to the data, I would suggest <a href="http://forms.stefcameron.com/2009/06/01/creating-and-loading-data-nodes/" rel="nofollow">adding a node to the data to remember the state</a>. Once loaded, you can remove the special node so that it doesn&#8217;t remain in the form&#8217;s data (if you don&#8217;t want it there).</p>
<p>As for the number of records, I don&#8217;t see anything wrong with what you&#8217;re doing. You could also try the following to see if you get better results:</p>
<pre><code>var entries = xfa.datasets.data.form1.entry.all;</code></pre>
<p>That will get all nodes with the name &#8220;entry&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/#comment-5372</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 12 Aug 2010 20:09:33 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=32#comment-5372</guid>
		<description>Hi Stefan,

Old XFD data files created in Adobe Forms 5 (Formerly FormFlow99) can be imported into PDFs that were upgraded from old XFT templates.  However, XFTs provided the ability to create multiple records within the XFDs. Is there a way to set up the PDF to read all records, instead of just the first one? Can it then be set up to save all of the records as an XDP file?</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>Old XFD data files created in Adobe Forms 5 (Formerly FormFlow99) can be imported into PDFs that were upgraded from old XFT templates.  However, XFTs provided the ability to create multiple records within the XFDs. Is there a way to set up the PDF to read all records, instead of just the first one? Can it then be set up to save all of the records as an XDP file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hellary</title>
		<link>http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/#comment-5371</link>
		<dc:creator>hellary</dc:creator>
		<pubDate>Thu, 12 Aug 2010 08:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=32#comment-5371</guid>
		<description>Hi Stefan,

The design of my pdf is initially open with only pageA (I do something to hide other pages on docReady event),
then user will click on a button of pageA to go to pageB while hiding pageA from him.


Now there is a button on pageB for user to import data from an xml file.
I use xfa.host.importData(), but it seems that it fires the form&#039;s initialize event again,
therefore everything get reset and pageA re-appears again without pageB.
I can&#039;t set global variables to work on it, everything is reset after xfa.host.importData().

Question 1:
How can I remember the state on pageB after calling xfa.host.importData()?


I do not directly bind the form fields with the xml data because my form layout is quite complicated,
instead I loop through each record in the xml, then do some work before filling each record.
I do this by using xfa.resolveNodes(&quot;xfa.datasets.data.form1.entry[*]&quot;) to loop through each entry for my work.
(form1 is the root node and entry is the element name in my xml schema)
but it seems that before I call xfa.host.importdata(), the length of xfa.datasets.data.form1.entry[*] is always 1.


Question 2:
Is there any other method to know the number of records in the xml and access the fields&#039; values?


Best Regards.</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>The design of my pdf is initially open with only pageA (I do something to hide other pages on docReady event),<br />
then user will click on a button of pageA to go to pageB while hiding pageA from him.</p>
<p>Now there is a button on pageB for user to import data from an xml file.<br />
I use xfa.host.importData(), but it seems that it fires the form&#8217;s initialize event again,<br />
therefore everything get reset and pageA re-appears again without pageB.<br />
I can&#8217;t set global variables to work on it, everything is reset after xfa.host.importData().</p>
<p>Question 1:<br />
How can I remember the state on pageB after calling xfa.host.importData()?</p>
<p>I do not directly bind the form fields with the xml data because my form layout is quite complicated,<br />
instead I loop through each record in the xml, then do some work before filling each record.<br />
I do this by using xfa.resolveNodes(&#8220;xfa.datasets.data.form1.entry[*]&#8220;) to loop through each entry for my work.<br />
(form1 is the root node and entry is the element name in my xml schema)<br />
but it seems that before I call xfa.host.importdata(), the length of xfa.datasets.data.form1.entry[*] is always 1.</p>
<p>Question 2:<br />
Is there any other method to know the number of records in the xml and access the fields&#8217; values?</p>
<p>Best Regards.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

