<?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-splitting text between two text fields</title>
	<atom:link href="http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/</link>
	<description>Building intelligent forms using Adobe LiveCycle Designer</description>
	<lastBuildDate>Sun, 21 Mar 2010 20:03:48 +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/07/10/auto-splitting-text-between-two-text-fields/comment-page-1/#comment-55798</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Thu, 17 Sep 2009 22:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-55798</guid>
		<description>perniciano,

Could you expand a little more on &quot;getting it from there to the field&quot;?</description>
		<content:encoded><![CDATA[<p>perniciano,</p>
<p>Could you expand a little more on &#8220;getting it from there to the field&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: perniciano</title>
		<link>http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/comment-page-1/#comment-55331</link>
		<dc:creator>perniciano</dc:creator>
		<pubDate>Thu, 10 Sep 2009 20:26:39 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-55331</guid>
		<description>I need to massage the data from the field before I can assign it to the floating field, but the floating field either shows the original value or something else. Not the data I calculated.
I&#039;m passing a &quot;date&quot; as a string to a form variable and then getting it from there to the field.
I had used the xfa.layout.relayout() with no change.

any ideas?</description>
		<content:encoded><![CDATA[<p>I need to massage the data from the field before I can assign it to the floating field, but the floating field either shows the original value or something else. Not the data I calculated.<br />
I&#8217;m passing a &#8220;date&#8221; as a string to a form variable and then getting it from there to the field.<br />
I had used the xfa.layout.relayout() with no change.</p>
<p>any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/comment-page-1/#comment-32271</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Thu, 30 Oct 2008 13:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-32271</guid>
		<description>neptas,

Form Guides are designed to execute your form in a Flash environment and mirror what is done in the PDF because you might decide to deploy a form as a Form Guide without the PDF behind it. The catch is that Form Guides (and HTML forms) operate on the &lt;a href=&quot;http://help.adobe.com/en_US/livecycle/8.2/fgscriptsupport.pdf&quot; rel=&quot;nofollow&quot;&gt;XFA Subset&lt;/a&gt; which means that you don&#039;t have access to &lt;i&gt;all&lt;/i&gt; the APIs which you can access when your script executes in Acrobat/Reader.

If you need to write scripts that use more than the subset in order to do special things only in the PDF, you need to &quot;protect&quot; that code with a check to ensure it executes only in the context of the PDF. You can do this by checking the value of the xfa.host.name property. If it&#039;s &quot;Flash&quot;, then your in the context of the Form Guide. Otherwise, you&#039;re in the PDF:

&lt;pre&gt;&lt;code&gt;if (xfa.host.name != &quot;Flash&quot;)
{
    // do the PDF-only/full-XFA stuff...
}&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>neptas,</p>
<p>Form Guides are designed to execute your form in a Flash environment and mirror what is done in the PDF because you might decide to deploy a form as a Form Guide without the PDF behind it. The catch is that Form Guides (and HTML forms) operate on the <a href="http://help.adobe.com/en_US/livecycle/8.2/fgscriptsupport.pdf" rel="nofollow">XFA Subset</a> which means that you don&#8217;t have access to <i>all</i> the APIs which you can access when your script executes in Acrobat/Reader.</p>
<p>If you need to write scripts that use more than the subset in order to do special things only in the PDF, you need to &#8220;protect&#8221; that code with a check to ensure it executes only in the context of the PDF. You can do this by checking the value of the xfa.host.name property. If it&#8217;s &#8220;Flash&#8221;, then your in the context of the Form Guide. Otherwise, you&#8217;re in the PDF:</p>
<pre><code>if (xfa.host.name != "Flash")
{
    // do the PDF-only/full-XFA stuff...
}</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: neptas</title>
		<link>http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/comment-page-1/#comment-31936</link>
		<dc:creator>neptas</dc:creator>
		<pubDate>Fri, 24 Oct 2008 00:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-31936</guid>
		<description>Hello Stefan,

I was wondereing if you can help me on this (it´s about form guides, but not directly related with this scenario).
Before using form guides, and because I knew that I could have a pdf inside it and formguide would make a mapping of value fileds into it, I thought I could use formguides to fill-in the form and execute any normal java script inside the form at the same time.

However, it seems that the script will run inside the flash context. For instance, if I have a replace javascript function inside a change filed event, when I had a value to that field in a formguide, the change event will be fired. However, the replace function will throw an error. What functions can we use?
Another example, if I have a floating field in a pdf, the form guide will do the mapping of the vlaue to the field, however, if I do a xfa.layout,.relayout, formguide will throw an error. BUT the floating field will actually work... Why I get such behavior? If this actually work in the PDF (making a preview from formguide) why we get this error?

thank you</description>
		<content:encoded><![CDATA[<p>Hello Stefan,</p>
<p>I was wondereing if you can help me on this (it´s about form guides, but not directly related with this scenario).<br />
Before using form guides, and because I knew that I could have a pdf inside it and formguide would make a mapping of value fileds into it, I thought I could use formguides to fill-in the form and execute any normal java script inside the form at the same time.</p>
<p>However, it seems that the script will run inside the flash context. For instance, if I have a replace javascript function inside a change filed event, when I had a value to that field in a formguide, the change event will be fired. However, the replace function will throw an error. What functions can we use?<br />
Another example, if I have a floating field in a pdf, the form guide will do the mapping of the vlaue to the field, however, if I do a xfa.layout,.relayout, formguide will throw an error. BUT the floating field will actually work&#8230; Why I get such behavior? If this actually work in the PDF (making a preview from formguide) why we get this error?</p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/comment-page-1/#comment-28129</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Wed, 03 Sep 2008 13:46:01 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-28129</guid>
		<description>Sergey,

Unfortunately not. There just isn&#039;t enough font information available via APIs at your disposal in order to compute the correct character width on a per-character basis for a particular font, which is basically what the algorithm would need to do.</description>
		<content:encoded><![CDATA[<p>Sergey,</p>
<p>Unfortunately not. There just isn&#8217;t enough font information available via APIs at your disposal in order to compute the correct character width on a per-character basis for a particular font, which is basically what the algorithm would need to do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergey</title>
		<link>http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/comment-page-1/#comment-27433</link>
		<dc:creator>Sergey</dc:creator>
		<pubDate>Wed, 27 Aug 2008 15:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/#comment-27433</guid>
		<description>Is there some algorithm for variable font width to do the same split?</description>
		<content:encoded><![CDATA[<p>Is there some algorithm for variable font width to do the same split?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
