<?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: Auto-Localizing Your Forms</title>
	<atom:link href="http://forms.stefcameron.com/2006/08/02/auto-localizing-your-forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2006/08/02/auto-localizing-your-forms/</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/02/auto-localizing-your-forms/#comment-5210</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 15 Oct 2007 02:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=30#comment-5210</guid>
		<description>Julia,

It sounds like you&#039;re pretty much wanting to do what my sample form is doing. My sample form has a few XML data files for various languages that you can load in order to change the captions of various fields to the selected language.

The problem with XML data files is that they&#039;re files. In this case, there&#039;s no way around requiring the user to be part of the process. The best you can do is give them a button on your form which, when clicked, opens the Import Data dialog by using the following statement in the button&#039;s Click event:

&lt;pre&gt;&lt;code&gt;xfa.host.importData();&lt;/code&gt;&lt;/pre&gt;

This will open the Import Data dialog where the user can find the appropriate XML data file for the language they want and load it into the form in order to change the captions.

The reason behind this security: Acrobat cannot allow a form to access files on a user&#039;s system without the user&#039;s explicit consent. Requiring the user to choose the XML data file to load into the form implies consent, albeit it doesn&#039;t provide for the best user experience. With Acrobat 8.1, there&#039;s also increased security for ODBC and web service data connections whereby Acrobat will ask the user to allow the connection (by clicking on an &quot;Allow&quot; button in a popup dialog) prior to establishing the data connection.</description>
		<content:encoded><![CDATA[<p>Julia,</p>
<p>It sounds like you&#8217;re pretty much wanting to do what my sample form is doing. My sample form has a few XML data files for various languages that you can load in order to change the captions of various fields to the selected language.</p>
<p>The problem with XML data files is that they&#8217;re files. In this case, there&#8217;s no way around requiring the user to be part of the process. The best you can do is give them a button on your form which, when clicked, opens the Import Data dialog by using the following statement in the button&#8217;s Click event:</p>
<pre><code>xfa.host.importData();</code></pre>
<p>This will open the Import Data dialog where the user can find the appropriate XML data file for the language they want and load it into the form in order to change the captions.</p>
<p>The reason behind this security: Acrobat cannot allow a form to access files on a user&#8217;s system without the user&#8217;s explicit consent. Requiring the user to choose the XML data file to load into the form implies consent, albeit it doesn&#8217;t provide for the best user experience. With Acrobat 8.1, there&#8217;s also increased security for ODBC and web service data connections whereby Acrobat will ask the user to allow the connection (by clicking on an &#8220;Allow&#8221; button in a popup dialog) prior to establishing the data connection.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julia</title>
		<link>http://forms.stefcameron.com/2006/08/02/auto-localizing-your-forms/#comment-5209</link>
		<dc:creator>Julia</dc:creator>
		<pubDate>Wed, 03 Oct 2007 20:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=30#comment-5209</guid>
		<description>Stefan,
I have a following scenario with regards to the form localization (form is created using Adobe LiveCycle Designer v7.1)
The labels on the form should change based on the user language selection;
All the labels reside in the XML file(s), not in the database.
Do you have an example of the script for this scenario?

Thanks in advance
Julia</description>
		<content:encoded><![CDATA[<p>Stefan,<br />
I have a following scenario with regards to the form localization (form is created using Adobe LiveCycle Designer v7.1)<br />
The labels on the form should change based on the user language selection;<br />
All the labels reside in the XML file(s), not in the database.<br />
Do you have an example of the script for this scenario?</p>
<p>Thanks in advance<br />
Julia</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/08/02/auto-localizing-your-forms/#comment-5208</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sat, 05 Aug 2006 04:08:54 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=30#comment-5208</guid>
		<description>Zack,

Your question was very interesting. So much so that I decided to write an entry about it:

&lt;a href=&quot;http://blogs.adobe.com/formbuilder/2006/08/tracking_mouse_clicks.html&quot; rel=&quot;nofollow&quot;&gt;Tracking Mouse Clicks&lt;/a&gt;

Let me know what you think.</description>
		<content:encoded><![CDATA[<p>Zack,</p>
<p>Your question was very interesting. So much so that I decided to write an entry about it:</p>
<p><a href="http://blogs.adobe.com/formbuilder/2006/08/tracking_mouse_clicks.html" rel="nofollow">Tracking Mouse Clicks</a></p>
<p>Let me know what you think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zack</title>
		<link>http://forms.stefcameron.com/2006/08/02/auto-localizing-your-forms/#comment-5207</link>
		<dc:creator>Zack</dc:creator>
		<pubDate>Thu, 03 Aug 2006 17:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=30#comment-5207</guid>
		<description>Hi Stefan,

I&#039;ve got another unrelated question. I&#039;m wondering if it&#039;s possible to track the coordinates of a click inside an image field? What I&#039;m wanting to do is to have something like an interactive pie chart for example, where clicking on one of the areas would change something else on the form. I could do this with a simple if statement inside the click event of the field - if I knew the coordinates of the click.

A somewhat hack of this  that I have more hope of working is to build the image out of multiple image fields and simply put different scripts on the separate image fields. Oh well, if you have any insight or an opinion on this please share. Thanks,

-Zack</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I&#8217;ve got another unrelated question. I&#8217;m wondering if it&#8217;s possible to track the coordinates of a click inside an image field? What I&#8217;m wanting to do is to have something like an interactive pie chart for example, where clicking on one of the areas would change something else on the form. I could do this with a simple if statement inside the click event of the field &#8211; if I knew the coordinates of the click.</p>
<p>A somewhat hack of this  that I have more hope of working is to build the image out of multiple image fields and simply put different scripts on the separate image fields. Oh well, if you have any insight or an opinion on this please share. Thanks,</p>
<p>-Zack</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai</title>
		<link>http://forms.stefcameron.com/2006/08/02/auto-localizing-your-forms/#comment-5206</link>
		<dc:creator>Mihai</dc:creator>
		<pubDate>Thu, 03 Aug 2006 00:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=30#comment-5206</guid>
		<description>This is not fair!
I was thinking about something very-very similar!

But now, that you did it first, maybe you can also use these ideas, if you find them interesting:
 - attach the xml files to the pdf document (so that they are not stand-alone files)
 - have the locale in a combo-box, populated at load-time with the languages in attachments, and update the labels when the user changes the selection</description>
		<content:encoded><![CDATA[<p>This is not fair!<br />
I was thinking about something very-very similar!</p>
<p>But now, that you did it first, maybe you can also use these ideas, if you find them interesting:<br />
 &#8211; attach the xml files to the pdf document (so that they are not stand-alone files)<br />
 &#8211; have the locale in a combo-box, populated at load-time with the languages in attachments, and update the labels when the user changes the selection</p>
]]></content:encoded>
	</item>
</channel>
</rss>

