<?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"
	>
<channel>
	<title>Comments on: Better Form Design with XFA 2.5</title>
	<atom:link href="http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/</link>
	<description>Building intelligent forms using Adobe LiveCycle Designer</description>
	<pubDate>Sat, 22 Nov 2008 23:20:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Murat</title>
		<link>http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/#comment-33743</link>
		<dc:creator>Murat</dc:creator>
		<pubDate>Fri, 21 Nov 2008 09:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=58#comment-33743</guid>
		<description>Hi Stefan,
I have changed my script as you advice.

I wrote the script (below) on first DDL's (drop down list) exit event. But nothing happens.. I choose "A" from first DDL but still get all list of second DDL.

 form1.#subform[0].buyuk::exit - (FormCalc, client)
	var sCategoryId = buyuk.rawValue
	var oDataConn = Ref(xfa.sourceSet.DataConnectionKUCUK.clone(1))
	oDataConn.#command.query.commandType = "text"
	oDataConn.#command.query.select = concat("SELECT * FROM KUCUK WHERE KUCUKID= ", sCategoryId)
	oDataConn.open()


I have uploaded pdf and access db at this link. Could you please have a look at it?
http://www.medyasoft.com.tr/poc/tuik/ddl.rar

Thank in advance..</description>
		<content:encoded><![CDATA[<p>Hi Stefan,<br />
I have changed my script as you advice.</p>
<p>I wrote the script (below) on first DDL&#8217;s (drop down list) exit event. But nothing happens.. I choose &#8220;A&#8221; from first DDL but still get all list of second DDL.</p>
<p> form1.#subform[0].buyuk::exit - (FormCalc, client)<br />
	var sCategoryId = buyuk.rawValue<br />
	var oDataConn = Ref(xfa.sourceSet.DataConnectionKUCUK.clone(1))<br />
	oDataConn.#command.query.commandType = &#8220;text&#8221;<br />
	oDataConn.#command.query.select = concat(&#8221;SELECT * FROM KUCUK WHERE KUCUKID= &#8220;, sCategoryId)<br />
	oDataConn.open()</p>
<p>I have uploaded pdf and access db at this link. Could you please have a look at it?<br />
<a href="http://www.medyasoft.com.tr/poc/tuik/ddl.rar" rel="nofollow">http://www.medyasoft.com.tr/poc/tuik/ddl.rar</a></p>
<p>Thank in advance..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/#comment-33624</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Thu, 20 Nov 2008 02:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=58#comment-33624</guid>
		<description>Murat,

First, you shouldn't precede "sCatagoryId" with "var" in your concat statement.

Second, if IL_ID is a number, then simply removing "var" should make it work. If it's a string, you'll need to wrap sCategoryId's &lt;i&gt;value&lt;/i&gt; in quotes so that the database interprets the value as a string instead of some number or other type of identifier:

&lt;pre&gt;&lt;code&gt;... = concat("SELECT * FROM COUNTRY WHERE IL_ID = '", sCategoryId, "'")&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Murat,</p>
<p>First, you shouldn&#8217;t precede &#8220;sCatagoryId&#8221; with &#8220;var&#8221; in your concat statement.</p>
<p>Second, if IL_ID is a number, then simply removing &#8220;var&#8221; should make it work. If it&#8217;s a string, you&#8217;ll need to wrap sCategoryId&#8217;s <i>value</i> in quotes so that the database interprets the value as a string instead of some number or other type of identifier:</p>
<pre><code>... = concat("SELECT * FROM COUNTRY WHERE IL_ID = '", sCategoryId, "'")</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murat</title>
		<link>http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/#comment-33523</link>
		<dc:creator>Murat</dc:creator>
		<pubDate>Tue, 18 Nov 2008 14:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=58#comment-33523</guid>
		<description>Hi Stefan,
First of all I have thank for your web site. It's very helpful to me. 
I have 2 drop down list on my form. Both of them is connected to Access databases. (Countries and cities.) I want to select country on first drop down list then I want to show just selected country's cities on the second drop down list. 
What I did till now is;

I wrote this on first drop down list's "change" event

var sCategoryId = country.rawValue
var oDataConn = Ref(xfa.sourceSet.DataConnectionCOUNTRY.clone(1))
oDataConn.#command.query.commandType = "text"
oDataConn.#command.query.select = concat("SELECT * FROM COUNTRY WHERE IL_ID = ", var sCategoryId)
oDataConn.open()

I don't have any message but i doesn't work? Do you have any idea?

Thank in advance..</description>
		<content:encoded><![CDATA[<p>Hi Stefan,<br />
First of all I have thank for your web site. It&#8217;s very helpful to me.<br />
I have 2 drop down list on my form. Both of them is connected to Access databases. (Countries and cities.) I want to select country on first drop down list then I want to show just selected country&#8217;s cities on the second drop down list.<br />
What I did till now is;</p>
<p>I wrote this on first drop down list&#8217;s &#8220;change&#8221; event</p>
<p>var sCategoryId = country.rawValue<br />
var oDataConn = Ref(xfa.sourceSet.DataConnectionCOUNTRY.clone(1))<br />
oDataConn.#command.query.commandType = &#8220;text&#8221;<br />
oDataConn.#command.query.select = concat(&#8221;SELECT * FROM COUNTRY WHERE IL_ID = &#8220;, var sCategoryId)<br />
oDataConn.open()</p>
<p>I don&#8217;t have any message but i doesn&#8217;t work? Do you have any idea?</p>
<p>Thank in advance..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/#comment-32839</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 11 Nov 2008 18:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=58#comment-32839</guid>
		<description>TJ Doherty,

That's the problem: Extending the form in this way does not enable any &lt;a href="http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/" rel="nofollow"&gt;data import&lt;/a&gt; features which are required to interact with data connections in the free Reader. This feature just enables Reader to save the data entered in the form. In order to do this in Reader, you'll need to use LiveCycle Reader Extensions ES.</description>
		<content:encoded><![CDATA[<p>TJ Doherty,</p>
<p>That&#8217;s the problem: Extending the form in this way does not enable any <a href="http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/" rel="nofollow">data import</a> features which are required to interact with data connections in the free Reader. This feature just enables Reader to save the data entered in the form. In order to do this in Reader, you&#8217;ll need to use LiveCycle Reader Extensions ES.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ Doherty</title>
		<link>http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/#comment-32837</link>
		<dc:creator>TJ Doherty</dc:creator>
		<pubDate>Tue, 11 Nov 2008 17:47:04 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=58#comment-32837</guid>
		<description>Stefan -

I used Acrobat Pro’s “Extend Feature in Adobe Reader” tool.</description>
		<content:encoded><![CDATA[<p>Stefan -</p>
<p>I used Acrobat Pro’s “Extend Feature in Adobe Reader” tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/#comment-32782</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 10 Nov 2008 19:06:13 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=58#comment-32782</guid>
		<description>TJ Doherty,

How exactly have you extended your form? Did you do it by enabling data import using Reader Extensions or did you use Acrobat Pro's "Extend Feature in Adobe Reader" tool?</description>
		<content:encoded><![CDATA[<p>TJ Doherty,</p>
<p>How exactly have you extended your form? Did you do it by enabling data import using Reader Extensions or did you use Acrobat Pro&#8217;s &#8220;Extend Feature in Adobe Reader&#8221; tool?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ Doherty</title>
		<link>http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/#comment-32647</link>
		<dc:creator>TJ Doherty</dc:creator>
		<pubDate>Fri, 07 Nov 2008 19:09:04 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=58#comment-32647</guid>
		<description>Stefan - 

Thank you for the reply.  Perhaps you misunderstood my question.  I have extended the PDF for data access in Reader.  I am able to access unfiltered data from my DSN using the Reader.  However, when I attempt to populate a filtered dropdown list using the above script, it fails in Reader and gives  me the "accessor 'xfa.sourceSet.connEmployeeEmail.clone("1")' is unknown" message.</description>
		<content:encoded><![CDATA[<p>Stefan - </p>
<p>Thank you for the reply.  Perhaps you misunderstood my question.  I have extended the PDF for data access in Reader.  I am able to access unfiltered data from my DSN using the Reader.  However, when I attempt to populate a filtered dropdown list using the above script, it fails in Reader and gives  me the &#8220;accessor &#8216;xfa.sourceSet.connEmployeeEmail.clone(&#8221;1&#8243;)&#8217; is unknown&#8221; message.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/#comment-32527</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 04 Nov 2008 21:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=58#comment-32527</guid>
		<description>TJ Dohjerty,

It's likely because you can't &lt;a href="http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/" rel="nofollow"&gt;import data&lt;/a&gt; in Reader without extending the PDF or using LC Forms.</description>
		<content:encoded><![CDATA[<p>TJ Dohjerty,</p>
<p>It&#8217;s likely because you can&#8217;t <a href="http://forms.stefcameron.com/2006/08/12/importing-data-in-acrobat/" rel="nofollow">import data</a> in Reader without extending the PDF or using LC Forms.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ Dohjerty</title>
		<link>http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/#comment-32176</link>
		<dc:creator>TJ Dohjerty</dc:creator>
		<pubDate>Tue, 28 Oct 2008 17:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=58#comment-32176</guid>
		<description>Stefan -

I am trying to populate a dropdown list (filtered) and am using Designer 8.2.  The following code works correctly in Acrobat Pro 9.0 but fails in Acrobat Reader 8:

var sEmployeeName = xfa.event.newText
var sEmployeeID = $.boundItem(sEmployeeName)
var oDataConn = Ref($sourceSet.connEmployeeEmail.clone(1))
var sReturnMail = sEmployeeName
oDataConn.#command.query.commandType = "text"
oDataConn.#command.query.select = concat("SELECT EmailAddress FROM Contacts WHERE ContactID = ", sEmployeeID, ";")
oDataConn.open()
oDataConn.first()
oDataConn.close()

When it fails, I get that "accessor 'xfa.sourceSet.connEmployeeEmail.clone("1")' is unknown.  Any ideas??</description>
		<content:encoded><![CDATA[<p>Stefan -</p>
<p>I am trying to populate a dropdown list (filtered) and am using Designer 8.2.  The following code works correctly in Acrobat Pro 9.0 but fails in Acrobat Reader 8:</p>
<p>var sEmployeeName = xfa.event.newText<br />
var sEmployeeID = $.boundItem(sEmployeeName)<br />
var oDataConn = Ref($sourceSet.connEmployeeEmail.clone(1))<br />
var sReturnMail = sEmployeeName<br />
oDataConn.#command.query.commandType = &#8220;text&#8221;<br />
oDataConn.#command.query.select = concat(&#8221;SELECT EmailAddress FROM Contacts WHERE ContactID = &#8220;, sEmployeeID, &#8220;;&#8221;)<br />
oDataConn.open()<br />
oDataConn.first()<br />
oDataConn.close()</p>
<p>When it fails, I get that &#8220;accessor &#8216;xfa.sourceSet.connEmployeeEmail.clone(&#8221;1&#8243;)&#8217; is unknown.  Any ideas??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/12/07/better-form-design-with-xfa-25/#comment-30771</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Thu, 09 Oct 2008 22:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=58#comment-30771</guid>
		<description>Suresh talla,

While this isn't the most secure way to get data into a PDF from a web page, it might do the trick for you: &lt;a href="http://forms.stefcameron.com/2006/10/20/using-url-requests-in-pdf-forms/" rel="nofollow"&gt;Using URL Requests in PDF Forms&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Suresh talla,</p>
<p>While this isn&#8217;t the most secure way to get data into a PDF from a web page, it might do the trick for you: <a href="http://forms.stefcameron.com/2006/10/20/using-url-requests-in-pdf-forms/" rel="nofollow">Using URL Requests in PDF Forms</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
