<?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: Demystifying IM.AddInstance</title>
	<atom:link href="http://forms.stefcameron.com/2006/07/08/demystifying-imaddinstance/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2006/07/08/demystifying-imaddinstance/</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/07/08/demystifying-imaddinstance/#comment-5051</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Thu, 22 Jul 2010 11:45:36 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=24#comment-5051</guid>
		<description>@sha,

Adobe LiveCycle Designer can open (import) .ifd files since the very first version, I believe. Once imported, you will have an XFA form which you can save as a PDF file.</description>
		<content:encoded><![CDATA[<p>@sha,</p>
<p>Adobe LiveCycle Designer can open (import) .ifd files since the very first version, I believe. Once imported, you will have an XFA form which you can save as a PDF file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sha</title>
		<link>http://forms.stefcameron.com/2006/07/08/demystifying-imaddinstance/#comment-5050</link>
		<dc:creator>sha</dc:creator>
		<pubDate>Thu, 15 Jul 2010 12:56:09 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=24#comment-5050</guid>
		<description>Hi Stefan,

I am using Adobe Output Designer 5.5, and few .ifd and .mdf files.  The task is to convert these to .pdf files.  ]
I am able to covert the .ifd to .mdf but unable to convert .mdf to .pdf... Could you please let us know how to go further.

Thanks
Sha</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I am using Adobe Output Designer 5.5, and few .ifd and .mdf files.  The task is to convert these to .pdf files.  ]<br />
I am able to covert the .ifd to .mdf but unable to convert .mdf to .pdf&#8230; Could you please let us know how to go further.</p>
<p>Thanks<br />
Sha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/07/08/demystifying-imaddinstance/#comment-5049</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Thu, 25 Sep 2008 02:41:47 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=24#comment-5049</guid>
		<description>Saran,

Are you giving the proper reference to the xfa.host.resetData() method? You should be giving it the SOM expression to your table. For example,

&lt;pre&gt;&lt;code&gt;xfa.host.resetData(myTable.somExpression);&lt;/code&gt;&lt;/pre&gt;

If that doesn&#039;t work, you can always use the table row&#039;s &lt;a href=&quot;http://forms.stefcameron.com/2006/11/11/instance-manager-object-reference/&quot; rel=&quot;nofollow&quot;&gt;Instance Manager&lt;/a&gt; to remove all instances and add a blank one (assuming you&#039;ve set the row to be repeatable and you&#039;ve set a minimum instance count of 0 (zero) using the &quot;Object palette &gt; Binding tab&quot;):

&lt;pre&gt;&lt;code&gt;myTable._Row1.setInstances(0); // remove all
myTable._Row1.addInstance(0); // add a new blank row&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Saran,</p>
<p>Are you giving the proper reference to the xfa.host.resetData() method? You should be giving it the SOM expression to your table. For example,</p>
<pre><code>xfa.host.resetData(myTable.somExpression);</code></pre>
<p>If that doesn&#8217;t work, you can always use the table row&#8217;s <a href="http://forms.stefcameron.com/2006/11/11/instance-manager-object-reference/" rel="nofollow">Instance Manager</a> to remove all instances and add a blank one (assuming you&#8217;ve set the row to be repeatable and you&#8217;ve set a minimum instance count of 0 (zero) using the &#8220;Object palette > Binding tab&#8221;):</p>
<pre><code>myTable._Row1.setInstances(0); // remove all
myTable._Row1.addInstance(0); // add a new blank row</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saran</title>
		<link>http://forms.stefcameron.com/2006/07/08/demystifying-imaddinstance/#comment-5048</link>
		<dc:creator>Saran</dc:creator>
		<pubDate>Sat, 20 Sep 2008 09:01:16 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=24#comment-5048</guid>
		<description>hi i have the issue of resetting the form data. I could reset the datas typed inside the Table rows. But when i us the xfa.host.resetDate(); script it doesnt reset the rows and make just one row to be visible. User can then add the rows using a Button which adds rows.. Please help me</description>
		<content:encoded><![CDATA[<p>hi i have the issue of resetting the form data. I could reset the datas typed inside the Table rows. But when i us the xfa.host.resetDate(); script it doesnt reset the rows and make just one row to be visible. User can then add the rows using a Button which adds rows.. Please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/07/08/demystifying-imaddinstance/#comment-5047</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 21 Jul 2008 00:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=24#comment-5047</guid>
		<description>Amit,

It sounds like your form is configured to populate the drop downs in the first instance however not in the new instances. The &lt;a href=&quot;http://forms.stefcameron.com/2006/11/11/instance-manager-object-reference/&quot; rel=&quot;nofollow&quot;&gt;addInstance() method&lt;/a&gt; actually returns a reference to the new instance which you can use to access the drop down lists and populate them as required:

&lt;pre&gt;&lt;code&gt;var newInstance = _repeatableSubform.addInstance(0);
newInstance.DropDownList1.addItem(&quot;item 1&quot;);
...&lt;/code&gt;&lt;/pre&gt;

Another way to do it is to use the repeatable subform&#039;s Initialize event (you can access it using the Script Editor palette, &quot;Window menu &gt; Script Editor&quot;) to populate the drop down lists. When you add new instances, their Initialize events are triggered and they&#039;ll automatically populate the drop down lists that pertain to them.</description>
		<content:encoded><![CDATA[<p>Amit,</p>
<p>It sounds like your form is configured to populate the drop downs in the first instance however not in the new instances. The <a href="http://forms.stefcameron.com/2006/11/11/instance-manager-object-reference/" rel="nofollow">addInstance() method</a> actually returns a reference to the new instance which you can use to access the drop down lists and populate them as required:</p>
<pre><code>var newInstance = _repeatableSubform.addInstance(0);
newInstance.DropDownList1.addItem("item 1");
...</code></pre>
<p>Another way to do it is to use the repeatable subform&#8217;s Initialize event (you can access it using the Script Editor palette, &#8220;Window menu > Script Editor&#8221;) to populate the drop down lists. When you add new instances, their Initialize events are triggered and they&#8217;ll automatically populate the drop down lists that pertain to them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit</title>
		<link>http://forms.stefcameron.com/2006/07/08/demystifying-imaddinstance/#comment-5046</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Wed, 16 Jul 2008 03:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=24#comment-5046</guid>
		<description>Hi Stefan,

A very good blog, got to know many a new things.
Despite of me being working with forms for a considerable time, this blog of urs gave me a lot new things to learn. Thanks..

We are working on a scenario wherein we are add the instances of a subform depending upon the value entered by user at runtime.
That subform has around 15 dropdowns, so i&#039;ve used the addInstance method to add the instances of the subform at runtime.
The value populated into the dropdowns is coming from some backend system, that is they are not static. So, wht is my problem is when i add the instances of that subform, they get added but the values of dropdown are there only in the first instance, rest all dropdowns in the rest of the instances are blank.

Need your help..</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>A very good blog, got to know many a new things.<br />
Despite of me being working with forms for a considerable time, this blog of urs gave me a lot new things to learn. Thanks..</p>
<p>We are working on a scenario wherein we are add the instances of a subform depending upon the value entered by user at runtime.<br />
That subform has around 15 dropdowns, so i&#8217;ve used the addInstance method to add the instances of the subform at runtime.<br />
The value populated into the dropdowns is coming from some backend system, that is they are not static. So, wht is my problem is when i add the instances of that subform, they get added but the values of dropdown are there only in the first instance, rest all dropdowns in the rest of the instances are blank.</p>
<p>Need your help..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/07/08/demystifying-imaddinstance/#comment-5045</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sat, 14 Jun 2008 20:02:53 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=24#comment-5045</guid>
		<description>Dani,

I think what has happened is that you imported your Excel worksheet with the &quot;fixed pages&quot; (&quot;artwork&quot;) option. This creates a form with high-fidelity layout towards your original document however it prevents you from using objects that involve subforms (subforms themselves as well as tables). There are also other restrictions such as not being able to use text, rectangle, circle and line objects amongst others. The benefits of importing your form this way is that the original layout (from Excel) is preserved and you&#039;re meant to overlay fields on it.

You may also import a form with &quot;flowable layout&quot;. This will give you the ability to use subform-based objects however the import utility will translate every last piece of the original document into an XFA object. In certain circumstances, this can yield forms with 100s of objects.

There&#039;s a third option you may with to use, since you&#039;re importing an Excel spreadsheet and that&#039;s Designer&#039;s ability to &lt;b&gt;paste cells from an Excel spreadsheet&lt;/b&gt;. I believe this was introduced in Designer 8.0. Simply copy and paste cells from your spreadsheet right into Designer. You should get a special &quot;paste from Excel&quot; dialog when you paste into Designer that will guide you through the process. I think the end-result is a table object in your form.</description>
		<content:encoded><![CDATA[<p>Dani,</p>
<p>I think what has happened is that you imported your Excel worksheet with the &#8220;fixed pages&#8221; (&#8220;artwork&#8221;) option. This creates a form with high-fidelity layout towards your original document however it prevents you from using objects that involve subforms (subforms themselves as well as tables). There are also other restrictions such as not being able to use text, rectangle, circle and line objects amongst others. The benefits of importing your form this way is that the original layout (from Excel) is preserved and you&#8217;re meant to overlay fields on it.</p>
<p>You may also import a form with &#8220;flowable layout&#8221;. This will give you the ability to use subform-based objects however the import utility will translate every last piece of the original document into an XFA object. In certain circumstances, this can yield forms with 100s of objects.</p>
<p>There&#8217;s a third option you may with to use, since you&#8217;re importing an Excel spreadsheet and that&#8217;s Designer&#8217;s ability to <b>paste cells from an Excel spreadsheet</b>. I believe this was introduced in Designer 8.0. Simply copy and paste cells from your spreadsheet right into Designer. You should get a special &#8220;paste from Excel&#8221; dialog when you paste into Designer that will guide you through the process. I think the end-result is a table object in your form.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dani</title>
		<link>http://forms.stefcameron.com/2006/07/08/demystifying-imaddinstance/#comment-5044</link>
		<dc:creator>Dani</dc:creator>
		<pubDate>Mon, 09 Jun 2008 14:58:32 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=24#comment-5044</guid>
		<description>Hi Stefan

I haven&#039;t could find any suggestion about my problem so i hope you can help me. I&#039;m trying to convert an excel file to pdf dinamic form using livecycle but, when I try to add a subform or a table on it, these options are disabled showing this message &quot;this type of object can not be used in PDF forms with illustrations&quot; (i had to translate this message because I&#039;m using spanish version, so it can not to be right) I have tried to find a solution but I haven&#039;t found. Any suggestion about this problem?

Thanks for all your help

Dani</description>
		<content:encoded><![CDATA[<p>Hi Stefan</p>
<p>I haven&#8217;t could find any suggestion about my problem so i hope you can help me. I&#8217;m trying to convert an excel file to pdf dinamic form using livecycle but, when I try to add a subform or a table on it, these options are disabled showing this message &#8220;this type of object can not be used in PDF forms with illustrations&#8221; (i had to translate this message because I&#8217;m using spanish version, so it can not to be right) I have tried to find a solution but I haven&#8217;t found. Any suggestion about this problem?</p>
<p>Thanks for all your help</p>
<p>Dani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/07/08/demystifying-imaddinstance/#comment-5043</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 27 May 2008 02:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=24#comment-5043</guid>
		<description>Chris,

I&#039;m having some difficulty understanding the structure of your form but bindings that start &quot;$record&quot; are anchored to the root data node rather than being relative to the parent&#039;s binding. So you could try to bind the &quot;r2&quot; table row to &quot;$record.item[*]&quot; and then bind the fields inside to &quot;OrderMult&quot; and &quot;ItemDesc1&quot; (no &quot;$record.item[*]&quot; prefix) which would make those field&#039;s bindings relative to the instance of the &lt;item&gt; data node that gets bound to the instance of the &quot;r2&quot; row.</description>
		<content:encoded><![CDATA[<p>Chris,</p>
<p>I&#8217;m having some difficulty understanding the structure of your form but bindings that start &#8220;$record&#8221; are anchored to the root data node rather than being relative to the parent&#8217;s binding. So you could try to bind the &#8220;r2&#8243; table row to &#8220;$record.item[*]&#8221; and then bind the fields inside to &#8220;OrderMult&#8221; and &#8220;ItemDesc1&#8243; (no &#8220;$record.item[*]&#8221; prefix) which would make those field&#8217;s bindings relative to the instance of the &lt;item> data node that gets bound to the instance of the &#8220;r2&#8243; row.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://forms.stefcameron.com/2006/07/08/demystifying-imaddinstance/#comment-5042</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sun, 18 May 2008 03:52:36 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=24#comment-5042</guid>
		<description>Stefan,

I am seeing a strage behavior in my own form when using addInstance().

I am using a data connection to prefill a form. The form has a Add_Row button that executes the following two lines as the click event:

root.PO.grid.Table1.#subformSet[0].action.Button4::click: - (JavaScript, client) --
  Table1._r2.addInstance(1);
  xfa.form.recalculate(1);

Some fields in the row &quot;r2&quot; have default bindings such as $record.item[*].OrderMult and $record.item[*].ItemDesc1, etc. which are used during pre-population.

The strange behavior is that all of the ItemDesc1 fields of the rows created with the dynamic form Button4 have the same value regardless of which row I enter a value.  This &quot;linked&quot;-value behavior happens for all of the row fields that have a Non-Normal default binding.

Do I need to explictly change the bindings of the newly added instances to prevent this problem?  How would that be done?</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>I am seeing a strage behavior in my own form when using addInstance().</p>
<p>I am using a data connection to prefill a form. The form has a Add_Row button that executes the following two lines as the click event:</p>
<p>root.PO.grid.Table1.#subformSet[0].action.Button4::click: &#8211; (JavaScript, client) &#8211;<br />
  Table1._r2.addInstance(1);<br />
  xfa.form.recalculate(1);</p>
<p>Some fields in the row &#8220;r2&#8243; have default bindings such as $record.item[*].OrderMult and $record.item[*].ItemDesc1, etc. which are used during pre-population.</p>
<p>The strange behavior is that all of the ItemDesc1 fields of the rows created with the dynamic form Button4 have the same value regardless of which row I enter a value.  This &#8220;linked&#8221;-value behavior happens for all of the row fields that have a Non-Normal default binding.</p>
<p>Do I need to explictly change the bindings of the newly added instances to prevent this problem?  How would that be done?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

