<?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: Remove, Remerge</title>
	<atom:link href="http://forms.stefcameron.com/2006/05/25/remove-remerge/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2006/05/25/remove-remerge/</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/05/25/remove-remerge/#comment-4914</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Fri, 28 Nov 2008 14:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=15#comment-4914</guid>
		<description>nik,

Unless you can somehow fit both forms into one single form (which would most likely be more trouble than it&#039;s worth), I think you&#039;re going to need to import some type of data into your purchase order form (that being the data from the requisition form). This is where LiveCycle really shines because it would let you create a workflow process which is initiated by the submission of a requisition form&#039;s data, takes the data and merges it into a purchase order form and sends the purchase order to the vendor (for example).</description>
		<content:encoded><![CDATA[<p>nik,</p>
<p>Unless you can somehow fit both forms into one single form (which would most likely be more trouble than it&#8217;s worth), I think you&#8217;re going to need to import some type of data into your purchase order form (that being the data from the requisition form). This is where LiveCycle really shines because it would let you create a workflow process which is initiated by the submission of a requisition form&#8217;s data, takes the data and merges it into a purchase order form and sends the purchase order to the vendor (for example).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nik</title>
		<link>http://forms.stefcameron.com/2006/05/25/remove-remerge/#comment-4913</link>
		<dc:creator>nik</dc:creator>
		<pubDate>Tue, 25 Nov 2008 08:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=15#comment-4913</guid>
		<description>Hi Stefan,

I manage to create a dynamic table which capable to grow on user demand for the use of company&#039;s internal purchase requisition. It works perfectly, until someday somebody in the management ask me if I can generate Purchase Order based on internal purchase requisition.

I need to populate the dynamic table in the requisition form to be used in Purchase Order form. My question is, what should I do in order to replicate the same dynamic table without using external application / accessing database. I&#039;m currently using Designer 8.
Thank you in advance.</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I manage to create a dynamic table which capable to grow on user demand for the use of company&#8217;s internal purchase requisition. It works perfectly, until someday somebody in the management ask me if I can generate Purchase Order based on internal purchase requisition.</p>
<p>I need to populate the dynamic table in the requisition form to be used in Purchase Order form. My question is, what should I do in order to replicate the same dynamic table without using external application / accessing database. I&#8217;m currently using Designer 8.<br />
Thank you in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/05/25/remove-remerge/#comment-4912</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 25 Sep 2007 13:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=15#comment-4912</guid>
		<description>Meng,

You&#039;re very welcome. I&#039;m glad I was able to help you out!</description>
		<content:encoded><![CDATA[<p>Meng,</p>
<p>You&#8217;re very welcome. I&#8217;m glad I was able to help you out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Meng</title>
		<link>http://forms.stefcameron.com/2006/05/25/remove-remerge/#comment-4911</link>
		<dc:creator>Meng</dc:creator>
		<pubDate>Tue, 25 Sep 2007 09:12:58 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=15#comment-4911</guid>
		<description>Hi Stefan,

Thanks so much for your solution!!!!!
I have spent few days&#039; time making a yet perfect workaround using scripts to deal with that but it seems that your solution is superior and much easier.
May be I should spend more time in mastering the components instead of coding in the future =)

Once again, thanks a million.</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>Thanks so much for your solution!!!!!<br />
I have spent few days&#8217; time making a yet perfect workaround using scripts to deal with that but it seems that your solution is superior and much easier.<br />
May be I should spend more time in mastering the components instead of coding in the future =)</p>
<p>Once again, thanks a million.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/05/25/remove-remerge/#comment-4910</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Fri, 21 Sep 2007 21:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=15#comment-4910</guid>
		<description>Meng,

I think you&#039;re seeing this behaviour because you&#039;re attempting to use a table section to contain the instances of the Row2 row. A table section is essentially a subformSet object which is designed to contain many subforms (rows in a table) but in a specific order, that order being &quot;document order&quot; (or the order in which they are defined in the Hierarchy palette). When you remerge the form, the result is that the rows within the table section get re-ordered to match the document order as opposed to the order in which you specified them by adding instances.

To get around this, I would suggest you create a table with a single row (call it &quot;section&quot;) and within that row, insert a nested table with two rows (&quot;row1&quot; and &quot;row2&quot; for the milestone and deliverable data). Make the &quot;section&quot; and &quot;row2&quot; rows repeatable. To add a new section, simply add a new instance of the &quot;section&quot; row and then to add a new deliverable, simply add a new instance of the &quot;row2&quot; row in the nested table contained in the &quot;section&quot; row.</description>
		<content:encoded><![CDATA[<p>Meng,</p>
<p>I think you&#8217;re seeing this behaviour because you&#8217;re attempting to use a table section to contain the instances of the Row2 row. A table section is essentially a subformSet object which is designed to contain many subforms (rows in a table) but in a specific order, that order being &#8220;document order&#8221; (or the order in which they are defined in the Hierarchy palette). When you remerge the form, the result is that the rows within the table section get re-ordered to match the document order as opposed to the order in which you specified them by adding instances.</p>
<p>To get around this, I would suggest you create a table with a single row (call it &#8220;section&#8221;) and within that row, insert a nested table with two rows (&#8220;row1&#8243; and &#8220;row2&#8243; for the milestone and deliverable data). Make the &#8220;section&#8221; and &#8220;row2&#8243; rows repeatable. To add a new section, simply add a new instance of the &#8220;section&#8221; row and then to add a new deliverable, simply add a new instance of the &#8220;row2&#8243; row in the nested table contained in the &#8220;section&#8221; row.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Meng</title>
		<link>http://forms.stefcameron.com/2006/05/25/remove-remerge/#comment-4909</link>
		<dc:creator>Meng</dc:creator>
		<pubDate>Tue, 04 Sep 2007 07:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=15#comment-4909</guid>
		<description>Hi Stefan,

For your information I have created a dynamic tables with section which can expand on demand.
The structure is as following:

Table
  - Section
      - Row1
      - Row2

Row1 is for &quot;Milestone&quot; while Row2 is for &quot;Deliverables&quot;. So you can see that for every Milestone there can be more than one deliverable row. I have made the section and row2 repeatable thus I can get the desired outcome, that I can add any number of Row2 underneath the corresponding Row1 on the fly.

It works great but the problem occurs when I try to use xfa.form.remerge(). The order of the rows changed after the method call.

While trying to figure out the problem, I have discovered that index for every Row2 will be &quot;counted&quot; regardless that I have inserted under different Row1. If I have 2 Row2 for Row1 then the next index for Row2 for the second Row1 would be 2 instead of 0.

To make it clear, I have come out with these scenarios.

Before remerge():

Table
  - Section
      - Row1[0]
      - Row2[0]
      - Row2[1]
      - Row2[2]
      - Row1[1]
      - Row2[3]
      - Row2[4]

After remerge():

Table
  - Section
      - Row1[0]
      - Row1[1]
      - Row2[0]
      - Row2[1]
      - Row2[2]
      - Row2[3]
      - Row2[4]

And as you can see the graphical outcome is that all the Row2 rows appear below the last Row1 row. This is actually not what I want at all.

So, do you have any idea how could I deal with this problem? Or may be I have misused the way Table Section works?

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>For your information I have created a dynamic tables with section which can expand on demand.<br />
The structure is as following:</p>
<p>Table<br />
  &#8211; Section<br />
      &#8211; Row1<br />
      &#8211; Row2</p>
<p>Row1 is for &#8220;Milestone&#8221; while Row2 is for &#8220;Deliverables&#8221;. So you can see that for every Milestone there can be more than one deliverable row. I have made the section and row2 repeatable thus I can get the desired outcome, that I can add any number of Row2 underneath the corresponding Row1 on the fly.</p>
<p>It works great but the problem occurs when I try to use xfa.form.remerge(). The order of the rows changed after the method call.</p>
<p>While trying to figure out the problem, I have discovered that index for every Row2 will be &#8220;counted&#8221; regardless that I have inserted under different Row1. If I have 2 Row2 for Row1 then the next index for Row2 for the second Row1 would be 2 instead of 0.</p>
<p>To make it clear, I have come out with these scenarios.</p>
<p>Before remerge():</p>
<p>Table<br />
  &#8211; Section<br />
      &#8211; Row1[0]<br />
      &#8211; Row2[0]<br />
      &#8211; Row2[1]<br />
      &#8211; Row2[2]<br />
      &#8211; Row1[1]<br />
      &#8211; Row2[3]<br />
      &#8211; Row2[4]</p>
<p>After remerge():</p>
<p>Table<br />
  &#8211; Section<br />
      &#8211; Row1[0]<br />
      &#8211; Row1[1]<br />
      &#8211; Row2[0]<br />
      &#8211; Row2[1]<br />
      &#8211; Row2[2]<br />
      &#8211; Row2[3]<br />
      &#8211; Row2[4]</p>
<p>And as you can see the graphical outcome is that all the Row2 rows appear below the last Row1 row. This is actually not what I want at all.</p>
<p>So, do you have any idea how could I deal with this problem? Or may be I have misused the way Table Section works?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/05/25/remove-remerge/#comment-4908</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sun, 15 Jul 2007 21:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=15#comment-4908</guid>
		<description>sergio,

The issues with adding and removing instances actually lie with the version of Acrobat you&#039;re using, not Designer. You say you&#039;re now using Designer 8.1: Does that mean that you&#039;re using Acrobat 8.1 as well? Or do you need to target an earlier version of Acrobat?

When you remove an instance, you should be using the &lt;a href=&quot;http://forms.stefcameron.com/category/instance-manager/&quot;Instance Manager&lt;/a rel=&quot;nofollow&quot;&gt;&#039;s &quot;removeInstance(index)&quot; method, where &quot;index&quot; is the zero-based index of the instance you wish to remove. You can find this index easily by using an object&#039;s &quot;parent&quot; property to find the instance subform that contains a &quot;delete&quot; button and then use that subform&#039;s index property as the value you supply to the &quot;removeInstance&quot; method. For example, if you &quot;delete instance&quot; button is a direct child of the instance subform, you could use this JavaScript:

&lt;pre&gt;&lt;code&gt;this.parent.parent._DynamicSubform.removeInstance(this.parent.index);&lt;/code&gt;&lt;/pre&gt;

As for inserting an instance immediately after the one containing the &quot;add&quot; button that was clicked, if you&#039;re targeting Acrobat 8.0 or later, you can use the &quot;insertInstance(index)&quot; method along with the index property of the subform instance in order to insert an instance into the set rather than using &quot;addInstance&quot; to append a new instance at the end and then using &quot;moveInstance&quot; to get it into the right position. (Don&#039;t forget to add 1 to the subform instance&#039;s index in order to get the new instance inserted &lt;i&gt;after&lt;/i&gt; the existing one.)

Note that &quot;insertInstance&quot; is only available in Acrobat 8.0 or later.</description>
		<content:encoded><![CDATA[<p>sergio,</p>
<p>The issues with adding and removing instances actually lie with the version of Acrobat you&#8217;re using, not Designer. You say you&#8217;re now using Designer 8.1: Does that mean that you&#8217;re using Acrobat 8.1 as well? Or do you need to target an earlier version of Acrobat?</p>
<p>When you remove an instance, you should be using the <a href="http://forms.stefcameron.com/category/instance-manager/"Instance Manager</a rel="nofollow">&#8216;s &#8220;removeInstance(index)&#8221; method, where &#8220;index&#8221; is the zero-based index of the instance you wish to remove. You can find this index easily by using an object&#8217;s &#8220;parent&#8221; property to find the instance subform that contains a &#8220;delete&#8221; button and then use that subform&#8217;s index property as the value you supply to the &#8220;removeInstance&#8221; method. For example, if you &#8220;delete instance&#8221; button is a direct child of the instance subform, you could use this JavaScript:</p>
<pre><code>this.parent.parent._DynamicSubform.removeInstance(this.parent.index);</code></pre>
<p>As for inserting an instance immediately after the one containing the &#8220;add&#8221; button that was clicked, if you&#8217;re targeting Acrobat 8.0 or later, you can use the &#8220;insertInstance(index)&#8221; method along with the index property of the subform instance in order to insert an instance into the set rather than using &#8220;addInstance&#8221; to append a new instance at the end and then using &#8220;moveInstance&#8221; to get it into the right position. (Don&#8217;t forget to add 1 to the subform instance&#8217;s index in order to get the new instance inserted <i>after</i> the existing one.)</p>
<p>Note that &#8220;insertInstance&#8221; is only available in Acrobat 8.0 or later.</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sergio</title>
		<link>http://forms.stefcameron.com/2006/05/25/remove-remerge/#comment-4907</link>
		<dc:creator>sergio</dc:creator>
		<pubDate>Fri, 06 Jul 2007 11:11:24 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=15#comment-4907</guid>
		<description>Hello Stefan,

I would like to get some comments from you about the problematic of adding and removing instances from a  form. In your tutorial, there are some references to the necessity of making a relayout of the layout of the form so that one can add and remove instances correctly. This seems to be a 7.0 designer issue.

However, I´m now using designer 8.1 and it seems that sometimes one can´t add/remove the right instance, even if we make a relayout of the form. The problem is that I need to add/remove instances between instances, and today, I´m not sure I will can do it without &quot;bugs&quot;: after playing around a little bit with a form like this, it seems acrobat will gets &quot;confused&quot;. In this case, when I add a new instance, the new instance will have 2 buttons (one to remove the instance itself and other to add a new instance right after it), so in fact it is a confusing mechanism... but I need it, and it should works...

(note: this can be more complicates, because one of the instances must have a dinamcally table (columns and rows added dinamically)

Thank you</description>
		<content:encoded><![CDATA[<p>Hello Stefan,</p>
<p>I would like to get some comments from you about the problematic of adding and removing instances from a  form. In your tutorial, there are some references to the necessity of making a relayout of the layout of the form so that one can add and remove instances correctly. This seems to be a 7.0 designer issue.</p>
<p>However, I´m now using designer 8.1 and it seems that sometimes one can´t add/remove the right instance, even if we make a relayout of the form. The problem is that I need to add/remove instances between instances, and today, I´m not sure I will can do it without &#8220;bugs&#8221;: after playing around a little bit with a form like this, it seems acrobat will gets &#8220;confused&#8221;. In this case, when I add a new instance, the new instance will have 2 buttons (one to remove the instance itself and other to add a new instance right after it), so in fact it is a confusing mechanism&#8230; but I need it, and it should works&#8230;</p>
<p>(note: this can be more complicates, because one of the instances must have a dinamcally table (columns and rows added dinamically)</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
</channel>
</rss>

