<?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: Restoring the State of your Form</title>
	<atom:link href="http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/</link>
	<description>Building intelligent forms using Adobe LiveCycle Designer</description>
	<lastBuildDate>Sat, 20 Mar 2010 21:36:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/comment-page-1/#comment-62573</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Wed, 16 Dec 2009 18:51:43 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/?p=196#comment-62573</guid>
		<description>krishna,

Connecting the form to a &lt;a href=&quot;http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/&quot; rel=&quot;nofollow&quot;&gt;web service&lt;/a&gt; would be the ideal solution since it&#039;s more secure than exposing the database however you can connect the form to a &lt;a href=&quot;http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/&quot; rel=&quot;nofollow&quot;&gt;database&lt;/a&gt; as well.

If you use a web service, then you could have a method that returns true/false if the account exists (you can check the response from a web service &lt;a href=&quot;http://forms.stefcameron.com/2009/03/23/pre-process-web-service-responses/&quot; rel=&quot;nofollow&quot;&gt;like this&lt;/a&gt;).

If you use the database directly, you could have one of the data connections (you can have multiple ODBC data connections in a single form) that queries the database and sets the value of a hidden field to true/false depending on the result, indicating whether the account exists or not. (The link I provided above for databases shows how to change the SQL statement at runtime in order to execute a query based on user data).

Note that, in either case, this will only work in Acrobat unless you enable &lt;a href=&quot;http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/&quot; rel=&quot;nofollow&quot;&gt;data import&lt;/a&gt; rights on the PDF for use in the free Reader.</description>
		<content:encoded><![CDATA[<p>krishna,</p>
<p>Connecting the form to a <a href="http://forms.stefcameron.com/2007/05/21/connecting-to-a-web-service/" rel="nofollow">web service</a> would be the ideal solution since it&#8217;s more secure than exposing the database however you can connect the form to a <a href="http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/" rel="nofollow">database</a> as well.</p>
<p>If you use a web service, then you could have a method that returns true/false if the account exists (you can check the response from a web service <a href="http://forms.stefcameron.com/2009/03/23/pre-process-web-service-responses/" rel="nofollow">like this</a>).</p>
<p>If you use the database directly, you could have one of the data connections (you can have multiple ODBC data connections in a single form) that queries the database and sets the value of a hidden field to true/false depending on the result, indicating whether the account exists or not. (The link I provided above for databases shows how to change the SQL statement at runtime in order to execute a query based on user data).</p>
<p>Note that, in either case, this will only work in Acrobat unless you enable <a href="http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/" rel="nofollow">data import</a> rights on the PDF for use in the free Reader.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krishna</title>
		<link>http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/comment-page-1/#comment-62462</link>
		<dc:creator>krishna</dc:creator>
		<pubDate>Tue, 15 Dec 2009 15:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/?p=196#comment-62462</guid>
		<description>Hi Stefan,
   I&#039;m struggling to find the answer to a question on interactive forms.
  We have LiveCycle ES. Now from the organization&#039;s portal, the user invokes the adobe interactive form by clicking a link. ( I will call .Net APIs for this) He needs to fill the form and submit it online. Here while filling the form, user wants to enter the account number on the form. And he needs to check validity from the database whether this account number exists or not before submitting the whole form.
How can I do that? One way should be calling a webservice from the form. Do we have any other ways so that the form checks from the database?

It would be a great help if you can give some solution to this.

Thanks,
Krishna</description>
		<content:encoded><![CDATA[<p>Hi Stefan,<br />
   I&#8217;m struggling to find the answer to a question on interactive forms.<br />
  We have LiveCycle ES. Now from the organization&#8217;s portal, the user invokes the adobe interactive form by clicking a link. ( I will call .Net APIs for this) He needs to fill the form and submit it online. Here while filling the form, user wants to enter the account number on the form. And he needs to check validity from the database whether this account number exists or not before submitting the whole form.<br />
How can I do that? One way should be calling a webservice from the form. Do we have any other ways so that the form checks from the database?</p>
<p>It would be a great help if you can give some solution to this.</p>
<p>Thanks,<br />
Krishna</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/comment-page-1/#comment-62418</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 15 Dec 2009 02:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/?p=196#comment-62418</guid>
		<description>Thanks for the link.  Unfortunately I didn&#039;t realize I have been doing ALL my testing in Adobe Pro.  I have been working to make everyone&#039;s lives easier by importing employee data into a form and auto-populating.  It&#039;s been a long haul getting all this scripting, etc to work, and now I&#039;ve realized that it won&#039;t even work in Adobe Reader.  I have a rotten feeling in my gut lol.</description>
		<content:encoded><![CDATA[<p>Thanks for the link.  Unfortunately I didn&#8217;t realize I have been doing ALL my testing in Adobe Pro.  I have been working to make everyone&#8217;s lives easier by importing employee data into a form and auto-populating.  It&#8217;s been a long haul getting all this scripting, etc to work, and now I&#8217;ve realized that it won&#8217;t even work in Adobe Reader.  I have a rotten feeling in my gut lol.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/comment-page-1/#comment-62403</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 14 Dec 2009 23:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/?p=196#comment-62403</guid>
		<description>Josh,

I&#039;m glad to know my site had helped you out!

Using Acrobat Pro to extend PDFs for use in Reader will not enable Reader to &lt;a href=&quot;http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/&quot; rel=&quot;nofollow&quot;&gt;import data&lt;/a&gt;. Importing data is different from enabling local save (though the two are often confused)...</description>
		<content:encoded><![CDATA[<p>Josh,</p>
<p>I&#8217;m glad to know my site had helped you out!</p>
<p>Using Acrobat Pro to extend PDFs for use in Reader will not enable Reader to <a href="http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/" rel="nofollow">import data</a>. Importing data is different from enabling local save (though the two are often confused)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/comment-page-1/#comment-62201</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Fri, 11 Dec 2009 06:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/?p=196#comment-62201</guid>
		<description>Unfortunately I have the exact opposite as a problem.  

I have a data connection established with my form.  When the user begins he enters either his/her name or company ID.  The form takes this value and uses it in a select statement to populate the employee info.  

When the field is saved in reader after being filled out and opened again, it loses all data connection field values.  Oddly enough the only one that comes back is an unbound field.  It still works if saved/open in Adobe Pro.  I tried saving my form with reader rights, and it still didn&#039;t correct my issue.

Really wish I knew what to look for.  

PS your site has helped me along with many issues.  Thx.

Josh</description>
		<content:encoded><![CDATA[<p>Unfortunately I have the exact opposite as a problem.  </p>
<p>I have a data connection established with my form.  When the user begins he enters either his/her name or company ID.  The form takes this value and uses it in a select statement to populate the employee info.  </p>
<p>When the field is saved in reader after being filled out and opened again, it loses all data connection field values.  Oddly enough the only one that comes back is an unbound field.  It still works if saved/open in Adobe Pro.  I tried saving my form with reader rights, and it still didn&#8217;t correct my issue.</p>
<p>Really wish I knew what to look for.  </p>
<p>PS your site has helped me along with many issues.  Thx.</p>
<p>Josh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/comment-page-1/#comment-59536</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Wed, 04 Nov 2009 18:37:55 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/?p=196#comment-59536</guid>
		<description>Niall O&#039;Donovan,

Great! Thanks for letting me know.</description>
		<content:encoded><![CDATA[<p>Niall O&#8217;Donovan,</p>
<p>Great! Thanks for letting me know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niall O'Donovan</title>
		<link>http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/comment-page-1/#comment-59534</link>
		<dc:creator>Niall O'Donovan</dc:creator>
		<pubDate>Wed, 04 Nov 2009 18:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/?p=196#comment-59534</guid>
		<description>Hi Stefan,

Sorted!!

Thanks,

N.</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>Sorted!!</p>
<p>Thanks,</p>
<p>N.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niall O'Donovan</title>
		<link>http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/comment-page-1/#comment-58778</link>
		<dc:creator>Niall O'Donovan</dc:creator>
		<pubDate>Thu, 29 Oct 2009 23:28:38 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/?p=196#comment-58778</guid>
		<description>Hi Stefan,

I am having trouble preserving script changes to the visibility of fields and changes in caption colour.

I have tried auto and manual/delta; yet when I save and reopen  some of the changes have been saved/restored, however most have not. 

All of the script changes are called from a script object in the root variables. Do you think this could be affecting the behaviour? 

Thanks,

Niall</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I am having trouble preserving script changes to the visibility of fields and changes in caption colour.</p>
<p>I have tried auto and manual/delta; yet when I save and reopen  some of the changes have been saved/restored, however most have not. </p>
<p>All of the script changes are called from a script object in the root variables. Do you think this could be affecting the behaviour? </p>
<p>Thanks,</p>
<p>Niall</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A. Matveief</title>
		<link>http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/comment-page-1/#comment-56848</link>
		<dc:creator>A. Matveief</dc:creator>
		<pubDate>Sat, 03 Oct 2009 03:27:43 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/?p=196#comment-56848</guid>
		<description>Les falke, unfortunately the Acrobat.com workflow collection method always submits the XML data for XFA Forms, unless the form is signed, in which case it will submit the XML.  As such, the only way to maintain the form would be to push the extra information into the XML data.  If you do the collecting via email that should maintain the formstate since that would submit the entire PDF.</description>
		<content:encoded><![CDATA[<p>Les falke, unfortunately the Acrobat.com workflow collection method always submits the XML data for XFA Forms, unless the form is signed, in which case it will submit the XML.  As such, the only way to maintain the form would be to push the extra information into the XML data.  If you do the collecting via email that should maintain the formstate since that would submit the entire PDF.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2008/09/29/restoring-the-state-of-your-form/comment-page-1/#comment-55585</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 14 Sep 2009 14:52:36 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/?p=196#comment-55585</guid>
		<description>Les falke,

I believe this only works if you retain the PDF that was saved with the state information. If you get XML data submissions from a distributed PDF, the XML data will not contain the state information.</description>
		<content:encoded><![CDATA[<p>Les falke,</p>
<p>I believe this only works if you retain the PDF that was saved with the state information. If you get XML data submissions from a distributed PDF, the XML data will not contain the state information.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
