<?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: Expanding to Fit the Entire Value</title>
	<atom:link href="http://forms.stefcameron.com/2006/10/31/expanding-to-fit-the-entire-value/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2006/10/31/expanding-to-fit-the-entire-value/</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/10/31/expanding-to-fit-the-entire-value/#comment-6187</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Fri, 10 Sep 2010 12:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=51#comment-6187</guid>
		<description>@Ben,

Unfortunately, I don&#039;t believe it&#039;s possible to alter the height of master pages (and even the content areas that they contain) at runtime. The implications to the layout engine would be large.

You can, however, change what page a subform is placed on at runtime. That means you would have to have some preset master pages and you would choose the one that is the best fit.

To change the page on which a body page subform is placed, you can do this:

&lt;pre&gt;&lt;code&gt;// JavaScript:
BodyPage.resolveNode(&quot;#breakBefore&quot;).target = &quot;Page2&quot;;
xfa.layout.relayout();
&lt;/code&gt;&lt;/pre&gt;

The script above assumes that you have configured the BodyPage subform to be initially placed on a specific page (e.g. a default page) otherwise it won&#039;t work because the &lt; element won&#039;t exist for the BodyPage subform. You can place a subform on a page by setting the &quot;Object palette &gt; Pagination tab &gt; Place property&quot; to &quot;On Page {X}&quot;.</description>
		<content:encoded><![CDATA[<p>@Ben,</p>
<p>Unfortunately, I don&#8217;t believe it&#8217;s possible to alter the height of master pages (and even the content areas that they contain) at runtime. The implications to the layout engine would be large.</p>
<p>You can, however, change what page a subform is placed on at runtime. That means you would have to have some preset master pages and you would choose the one that is the best fit.</p>
<p>To change the page on which a body page subform is placed, you can do this:</p>
<pre><code>// JavaScript:
BodyPage.resolveNode("#breakBefore").target = "Page2";
xfa.layout.relayout();
</code></pre>
<p>The script above assumes that you have configured the BodyPage subform to be initially placed on a specific page (e.g. a default page) otherwise it won&#8217;t work because the &lt; element won&#8217;t exist for the BodyPage subform. You can place a subform on a page by setting the &#8220;Object palette &gt; Pagination tab &gt; Place property&#8221; to &#8220;On Page {X}&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/10/31/expanding-to-fit-the-entire-value/#comment-6186</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Fri, 10 Sep 2010 11:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=51#comment-6186</guid>
		<description>@Jennie,

It&#039;s good that you have your header and footer on the master page. All you need to do is make sure that the content area (rectangle with a pink-ish border on the master page as well) does not overlap your header and footer. The content area (there can be more than one) determines where content from the body pages can flow into pages generated at runtime. Therefore, to ensure you table doesn&#039;t overlap your header and footer, make sure the content area restricts it to the space in-between them.</description>
		<content:encoded><![CDATA[<p>@Jennie,</p>
<p>It&#8217;s good that you have your header and footer on the master page. All you need to do is make sure that the content area (rectangle with a pink-ish border on the master page as well) does not overlap your header and footer. The content area (there can be more than one) determines where content from the body pages can flow into pages generated at runtime. Therefore, to ensure you table doesn&#8217;t overlap your header and footer, make sure the content area restricts it to the space in-between them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://forms.stefcameron.com/2006/10/31/expanding-to-fit-the-entire-value/#comment-6185</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 01 Sep 2010 09:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=51#comment-6185</guid>
		<description>Hi Stefan,

I&#039;m fairly new to LiveCycle too, and was wondering if there&#039;s any way to set the Master Page height dynamically based on the height of the subform that contains my input fields?

My forms aren&#039;t intended to be printed, so what I&#039;m trying to do is eliminate any pagination that is caused as the various fields are made visible/hidden.

I started to solve the problem by manually setting the Paper Type (in the master page tab) to &#039;custom&#039;, then choosing a height that would acommodate all the fields if they were visible, but this meant there was often a lot of white space at the bottom of the form.  So next I tried to set the master page height to the same as the subform that contains the fields - and that&#039;s where I&#039;ve got stuck.  I&#039;ve tried manually setting the paper type to custom, then changing the master page height using:

form1.#subform[0].Button1::click - (JavaScript, client)
var newHeight = xfa.layout.h(xfa.resolveNode(&quot;form1.#subform&quot;), &quot;in&quot;);
xfa.form.form1.Page1.h = newHeight + &quot;in&quot;;

...but I&#039;m having no luck and I&#039;d be grateful for any help!

Thanks in advance

Ben</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I&#8217;m fairly new to LiveCycle too, and was wondering if there&#8217;s any way to set the Master Page height dynamically based on the height of the subform that contains my input fields?</p>
<p>My forms aren&#8217;t intended to be printed, so what I&#8217;m trying to do is eliminate any pagination that is caused as the various fields are made visible/hidden.</p>
<p>I started to solve the problem by manually setting the Paper Type (in the master page tab) to &#8216;custom&#8217;, then choosing a height that would acommodate all the fields if they were visible, but this meant there was often a lot of white space at the bottom of the form.  So next I tried to set the master page height to the same as the subform that contains the fields &#8211; and that&#8217;s where I&#8217;ve got stuck.  I&#8217;ve tried manually setting the paper type to custom, then changing the master page height using:</p>
<p>form1.#subform[0].Button1::click &#8211; (JavaScript, client)<br />
var newHeight = xfa.layout.h(xfa.resolveNode(&#8220;form1.#subform&#8221;), &#8220;in&#8221;);<br />
xfa.form.form1.Page1.h = newHeight + &#8220;in&#8221;;</p>
<p>&#8230;but I&#8217;m having no luck and I&#8217;d be grateful for any help!</p>
<p>Thanks in advance</p>
<p>Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennie</title>
		<link>http://forms.stefcameron.com/2006/10/31/expanding-to-fit-the-entire-value/#comment-6184</link>
		<dc:creator>Jennie</dc:creator>
		<pubDate>Wed, 25 Aug 2010 22:34:43 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=51#comment-6184</guid>
		<description>Hi Stephan,
First, I am a new user and have just started using LiveCycle Designer 8.  I am using Windows.
I am having difficulty with a custom form.
-I currently have a header and footer on the Master Page.
-On the Design Page, I have inserted a table.
-The Text Fields in the table are expandable.
-I have read your article about &quot;previewing a form as a Dynamic PDF&quot; and have made sure the form is saved correctly.
Here are the issues:
-I need the table to automatically flow into the next page without overlapping the footer at the bottom or the header at the top and have tried to use the Subform feature with no success.
-I may not understand exactly how the Subform works, but when set to &#039;Flowed&#039; it rolls up and will not allow me to expand.
-If I get the Subform working should the Subform cover the entire table?
Thank you for any help you can offer.</description>
		<content:encoded><![CDATA[<p>Hi Stephan,<br />
First, I am a new user and have just started using LiveCycle Designer 8.  I am using Windows.<br />
I am having difficulty with a custom form.<br />
-I currently have a header and footer on the Master Page.<br />
-On the Design Page, I have inserted a table.<br />
-The Text Fields in the table are expandable.<br />
-I have read your article about &#8220;previewing a form as a Dynamic PDF&#8221; and have made sure the form is saved correctly.<br />
Here are the issues:<br />
-I need the table to automatically flow into the next page without overlapping the footer at the bottom or the header at the top and have tried to use the Subform feature with no success.<br />
-I may not understand exactly how the Subform works, but when set to &#8216;Flowed&#8217; it rolls up and will not allow me to expand.<br />
-If I get the Subform working should the Subform cover the entire table?<br />
Thank you for any help you can offer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/10/31/expanding-to-fit-the-entire-value/#comment-6183</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 19 Jul 2010 17:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=51#comment-6183</guid>
		<description>@Chris,

You call the field on the master page a &quot;floating field&quot;. To me, that means a field that you inserted into a text object by clicking in a text object and choosing the &quot;Insert &gt; Floating Field&quot;. Is that really what you mean?

The page number is a floating field as well, but it gets its value programmatically, not from data.

Your other field likely has a data binding. What kind of data are you wanting to merge into this field and what is the desired result? Is it one value per page?</description>
		<content:encoded><![CDATA[<p>@Chris,</p>
<p>You call the field on the master page a &#8220;floating field&#8221;. To me, that means a field that you inserted into a text object by clicking in a text object and choosing the &#8220;Insert > Floating Field&#8221;. Is that really what you mean?</p>
<p>The page number is a floating field as well, but it gets its value programmatically, not from data.</p>
<p>Your other field likely has a data binding. What kind of data are you wanting to merge into this field and what is the desired result? Is it one value per page?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://forms.stefcameron.com/2006/10/31/expanding-to-fit-the-entire-value/#comment-6182</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 09 Jul 2010 20:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=51#comment-6182</guid>
		<description>Hi Stefan,

Like most people I have a problem.

I am using LiveCycle 8.2 ES to develop a dynamic flowing form.  This form, when opened in Acrobat 8 or 9 will import data from an xml file and populate floating fields accordingly.

I have 1 master page with a current page number, and a floating field.  Both have to be placed in a specific place on the form to meet state regulations and this is why they are on the master page.

My issue is when I import the data the floating field on the master page will populate on the first page but not on any others while the current page continues to populate accordingly.

I would like to keep the floating field on the master page if at all possible since I have tried to use the footer option available but to no success.  It keeps placing the footer at the very end of the content not in the specific are of the form where it needs to be.

I appreciate any assistance you can provide.

thank you for your time</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>Like most people I have a problem.</p>
<p>I am using LiveCycle 8.2 ES to develop a dynamic flowing form.  This form, when opened in Acrobat 8 or 9 will import data from an xml file and populate floating fields accordingly.</p>
<p>I have 1 master page with a current page number, and a floating field.  Both have to be placed in a specific place on the form to meet state regulations and this is why they are on the master page.</p>
<p>My issue is when I import the data the floating field on the master page will populate on the first page but not on any others while the current page continues to populate accordingly.</p>
<p>I would like to keep the floating field on the master page if at all possible since I have tried to use the footer option available but to no success.  It keeps placing the footer at the very end of the content not in the specific are of the form where it needs to be.</p>
<p>I appreciate any assistance you can provide.</p>
<p>thank you for your time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/10/31/expanding-to-fit-the-entire-value/#comment-6181</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 29 Jun 2010 14:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=51#comment-6181</guid>
		<description>@marlaz (June 15, 2010),

You can for a master page to be used only on the last page of a form by using XFA&#039;s Simplex/Duplex feature which you can activate by selecting a pageSet (named &quot;(Master Pages)&quot; in the Hierarchy palette) then setting the &quot;Object palette &gt; Page Set tab &gt; Printing property&quot; to something other than &quot;Page Occurrence&quot;. Then select a master page and set its &quot;Object palette &gt; Pagination tab &gt; Master Page Applies To &gt; Placement property&quot; to &quot;Last Page (in Page Set)&quot;. Then you can set the table&#039;s pagination to place it on that special master page, thereby ensuring that the table ends-up on the last page.

But even simpler is just to make your body pages flow and put your table inside a subform that is as tall as a page, doesn&#039;t allow page breaks in its content and is located after all other content in the form. This will also ensure that the table ends-up on the last page (and on a page of its own).</description>
		<content:encoded><![CDATA[<p>@marlaz (June 15, 2010),</p>
<p>You can for a master page to be used only on the last page of a form by using XFA&#8217;s Simplex/Duplex feature which you can activate by selecting a pageSet (named &#8220;(Master Pages)&#8221; in the Hierarchy palette) then setting the &#8220;Object palette > Page Set tab > Printing property&#8221; to something other than &#8220;Page Occurrence&#8221;. Then select a master page and set its &#8220;Object palette > Pagination tab > Master Page Applies To > Placement property&#8221; to &#8220;Last Page (in Page Set)&#8221;. Then you can set the table&#8217;s pagination to place it on that special master page, thereby ensuring that the table ends-up on the last page.</p>
<p>But even simpler is just to make your body pages flow and put your table inside a subform that is as tall as a page, doesn&#8217;t allow page breaks in its content and is located after all other content in the form. This will also ensure that the table ends-up on the last page (and on a page of its own).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/10/31/expanding-to-fit-the-entire-value/#comment-6180</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Wed, 23 Jun 2010 12:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=51#comment-6180</guid>
		<description>@marlaz (June 14, 2010),

As long as the PDF form has been extended to allow attachments, you should be able to add attachments using Reader. Acrobat always allows adding attachments.

Designer cannot be used to add attachments to the PDF and editing a form (in Designer) that has attachments may cause those attachments to be lost.</description>
		<content:encoded><![CDATA[<p>@marlaz (June 14, 2010),</p>
<p>As long as the PDF form has been extended to allow attachments, you should be able to add attachments using Reader. Acrobat always allows adding attachments.</p>
<p>Designer cannot be used to add attachments to the PDF and editing a form (in Designer) that has attachments may cause those attachments to be lost.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/10/31/expanding-to-fit-the-entire-value/#comment-6179</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Wed, 23 Jun 2010 12:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=51#comment-6179</guid>
		<description>@Tanya,

Unfortunately, there&#039;s no easy way to do this. Text doesn&#039;t &quot;flow&quot; from one text field to another without some &lt;a href=&quot;http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/&quot; rel=&quot;nofollow&quot;&gt;cleaver coding&lt;/a&gt; (not &lt;i&gt;exactly&lt;/i&gt; what you want, but the principle is the same).</description>
		<content:encoded><![CDATA[<p>@Tanya,</p>
<p>Unfortunately, there&#8217;s no easy way to do this. Text doesn&#8217;t &#8220;flow&#8221; from one text field to another without some <a href="http://forms.stefcameron.com/2008/07/10/auto-splitting-text-between-two-text-fields/" rel="nofollow">cleaver coding</a> (not <i>exactly</i> what you want, but the principle is the same).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marlaz</title>
		<link>http://forms.stefcameron.com/2006/10/31/expanding-to-fit-the-entire-value/#comment-6178</link>
		<dc:creator>marlaz</dc:creator>
		<pubDate>Tue, 15 Jun 2010 12:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=51#comment-6178</guid>
		<description>Good Morning Stefan,

I have another question... Requests for new functions and designs come in every day.. This one is to add a required Revision table only at the end of the form. I was thinking of adding it to the Master Page somehow, but I would need to use a second master page to make the table be only on the last page.

BACKGROUND:
I have one Master page at this time; it has repeating information on each form page. This is how it needs to be.

How can I add a &quot;last Master page&quot; - or - a required table for revisions that needs to appear at the very end of a form.

Because only those in control of the doc revision will have access to the fields, I think the table needs to be on a Master Page. I could be wrong.

I guess my real question is:  How and where do I place a Master Page that appears at the end of the document only, not on each page.  Or if I don&#039;t need it on a Master Page, do I protect it somehow but allow the Doc team access so they can revise it when needed?</description>
		<content:encoded><![CDATA[<p>Good Morning Stefan,</p>
<p>I have another question&#8230; Requests for new functions and designs come in every day.. This one is to add a required Revision table only at the end of the form. I was thinking of adding it to the Master Page somehow, but I would need to use a second master page to make the table be only on the last page.</p>
<p>BACKGROUND:<br />
I have one Master page at this time; it has repeating information on each form page. This is how it needs to be.</p>
<p>How can I add a &#8220;last Master page&#8221; &#8211; or &#8211; a required table for revisions that needs to appear at the very end of a form.</p>
<p>Because only those in control of the doc revision will have access to the fields, I think the table needs to be on a Master Page. I could be wrong.</p>
<p>I guess my real question is:  How and where do I place a Master Page that appears at the end of the document only, not on each page.  Or if I don&#8217;t need it on a Master Page, do I protect it somehow but allow the Doc team access so they can revise it when needed?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

