<?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: Sorting Lists at Runtime</title>
	<atom:link href="http://forms.stefcameron.com/2006/06/29/sorting-lists-at-runtime/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2006/06/29/sorting-lists-at-runtime/</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/06/29/sorting-lists-at-runtime/#comment-5015</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 25 May 2009 19:33:01 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=23#comment-5015</guid>
		<description>Paul Thibideau,

If your table rows are instances of a single repeatable row, then you can use the &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;&#039;s moveInstance() method to re-order rows in a particular sort order of your choice.

John Brinkman recently posted on &lt;a href=&quot;http://blogs.adobe.com/formfeed/2009/05/sort_subforms.html&quot; rel=&quot;nofollow&quot;&gt;sorting subforms&lt;/a&gt;. You&#039;ll find some handy sorting scripts in his &quot;Sales Report&quot; sample form.</description>
		<content:encoded><![CDATA[<p>Paul Thibideau,</p>
<p>If your table rows are instances of a single repeatable row, then you can use the <a href="http://forms.stefcameron.com/2006/11/11/instance-manager-object-reference/" rel="nofollow">Instance Manager</a>&#8216;s moveInstance() method to re-order rows in a particular sort order of your choice.</p>
<p>John Brinkman recently posted on <a href="http://blogs.adobe.com/formfeed/2009/05/sort_subforms.html" rel="nofollow">sorting subforms</a>. You&#8217;ll find some handy sorting scripts in his &#8220;Sales Report&#8221; sample form.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Thibideau</title>
		<link>http://forms.stefcameron.com/2006/06/29/sorting-lists-at-runtime/#comment-5014</link>
		<dc:creator>Paul Thibideau</dc:creator>
		<pubDate>Wed, 20 May 2009 19:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=23#comment-5014</guid>
		<description>Hi Stefan,

I am trying to sort a table that contains data entered by the user.  Is there a way to sort a table?

Thanks,
Paul</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I am trying to sort a table that contains data entered by the user.  Is there a way to sort a table?</p>
<p>Thanks,<br />
Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/06/29/sorting-lists-at-runtime/#comment-5013</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 06 Jan 2009 02:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=23#comment-5013</guid>
		<description>Xancholy,

Wouldn&#039;t you simply call

&lt;pre&gt;&lt;code&gt;ScriptObject.Sort(DropdownList, true, false);&lt;/code&gt;&lt;/pre&gt;

(in other words, &quot;always sort ascending and not by value&quot;) and keep the Sort function the same in your form?

Also note that doing the sort is much easier now that the &lt;a href=&quot;http://forms.stefcameron.com/2007/02/01/new-list-object-properties-and-methods/&quot; rel=&quot;nofollow&quot;&gt;new list object API&lt;/a&gt; was introduced with Designer/Acrobat 8.0.</description>
		<content:encoded><![CDATA[<p>Xancholy,</p>
<p>Wouldn&#8217;t you simply call</p>
<pre><code>ScriptObject.Sort(DropdownList, true, false);</code></pre>
<p>(in other words, &#8220;always sort ascending and not by value&#8221;) and keep the Sort function the same in your form?</p>
<p>Also note that doing the sort is much easier now that the <a href="http://forms.stefcameron.com/2007/02/01/new-list-object-properties-and-methods/" rel="nofollow">new list object API</a> was introduced with Designer/Acrobat 8.0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xancholy</title>
		<link>http://forms.stefcameron.com/2006/06/29/sorting-lists-at-runtime/#comment-5012</link>
		<dc:creator>Xancholy</dc:creator>
		<pubDate>Tue, 30 Dec 2008 14:53:18 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=23#comment-5012</guid>
		<description>Hi Stefan,

I am trying to get this to simply sort items in a Dropdownlist in the form:ready event.

Unlike your example there are no SortAscending or SortByValue checkboxes.

How would I amend your code to get the items in a dropdownlist to sort ascending when the form loads ?

How would this line calling the scriptobject change  ?
ScriptObject.Sort(DropdownList, (SortAscending.rawValue == &quot;1&quot;), (SortByValue.rawValue == &quot;1&quot;));</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I am trying to get this to simply sort items in a Dropdownlist in the form:ready event.</p>
<p>Unlike your example there are no SortAscending or SortByValue checkboxes.</p>
<p>How would I amend your code to get the items in a dropdownlist to sort ascending when the form loads ?</p>
<p>How would this line calling the scriptobject change  ?<br />
ScriptObject.Sort(DropdownList, (SortAscending.rawValue == &#8220;1&#8243;), (SortByValue.rawValue == &#8220;1&#8243;));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javier</title>
		<link>http://forms.stefcameron.com/2006/06/29/sorting-lists-at-runtime/#comment-5011</link>
		<dc:creator>Javier</dc:creator>
		<pubDate>Tue, 12 Aug 2008 13:14:52 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=23#comment-5011</guid>
		<description>I get to work the Save Button to disk usgin this line : xfa.host.exportData(&quot;&quot;);
This open a Save As Dialog and it allows to save as xpd format, then you can chage the extension to xml.
Javier.</description>
		<content:encoded><![CDATA[<p>I get to work the Save Button to disk usgin this line : xfa.host.exportData(&#8220;&#8221;);<br />
This open a Save As Dialog and it allows to save as xpd format, then you can chage the extension to xml.<br />
Javier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javier</title>
		<link>http://forms.stefcameron.com/2006/06/29/sorting-lists-at-runtime/#comment-5010</link>
		<dc:creator>Javier</dc:creator>
		<pubDate>Fri, 08 Aug 2008 21:10:41 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=23#comment-5010</guid>
		<description>Perfect!!!!!
have you any code to get work button &quot;Save&quot; and then save the xml file submit to disk?
Javier</description>
		<content:encoded><![CDATA[<p>Perfect!!!!!<br />
have you any code to get work button &#8220;Save&#8221; and then save the xml file submit to disk?<br />
Javier</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/06/29/sorting-lists-at-runtime/#comment-5009</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Wed, 11 Apr 2007 21:11:33 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=23#comment-5009</guid>
		<description>Christian,

Thanks for pointing this out. It looks like Acrobat 8.0 broke something that prevents my sample form from working correctly.

It has to do with the call to

&lt;blockquote&gt;resolveNodes(&quot;#items[*]&quot;)&lt;/blockquote&gt;

Fortunately, the bug will be fixed in Acrobat&#039;s next release.

As a workaround, I would encourage you to have a look at the &lt;a href=&quot;http://blogs.adobe.com/formbuilder/2007/02/new_list_props_and_methods.html&quot; rel=&quot;nofollow&quot;&gt;new list object properties and methods&lt;/a&gt; now available in Acrobat 8.0. You should be able to use a combination of those new properties/methods along with some of the original script in this sample in order to come-up with an update solution that works.</description>
		<content:encoded><![CDATA[<p>Christian,</p>
<p>Thanks for pointing this out. It looks like Acrobat 8.0 broke something that prevents my sample form from working correctly.</p>
<p>It has to do with the call to</p>
<blockquote><p>resolveNodes(&#8220;#items[*]&#8220;)</p></blockquote>
<p>Fortunately, the bug will be fixed in Acrobat&#8217;s next release.</p>
<p>As a workaround, I would encourage you to have a look at the <a href="http://blogs.adobe.com/formbuilder/2007/02/new_list_props_and_methods.html" rel="nofollow">new list object properties and methods</a> now available in Acrobat 8.0. You should be able to use a combination of those new properties/methods along with some of the original script in this sample in order to come-up with an update solution that works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://forms.stefcameron.com/2006/06/29/sorting-lists-at-runtime/#comment-5008</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Tue, 10 Apr 2007 15:56:13 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=23#comment-5008</guid>
		<description>Hi,

sorry but there is in Arcobat 8.0 no functionality. So if you click on sort nothing happens. Is it like this, that something has changed between 7.0 and 8.0 ?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>sorry but there is in Arcobat 8.0 no functionality. So if you click on sort nothing happens. Is it like this, that something has changed between 7.0 and 8.0 ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2006/06/29/sorting-lists-at-runtime/#comment-5007</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Thu, 22 Mar 2007 01:46:20 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=23#comment-5007</guid>
		<description>Arne,

You should use Designer 7.0 or later to open this sample PDF form.

Opening it in Acrobat will only let you &lt;i&gt;use&lt;/i&gt; the form to see how it works however you won&#039;t be able to see the script that &lt;i&gt;makes&lt;/i&gt; it work -- you&#039;ll need Designer for that.</description>
		<content:encoded><![CDATA[<p>Arne,</p>
<p>You should use Designer 7.0 or later to open this sample PDF form.</p>
<p>Opening it in Acrobat will only let you <i>use</i> the form to see how it works however you won&#8217;t be able to see the script that <i>makes</i> it work &#8212; you&#8217;ll need Designer for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arne Metzner</title>
		<link>http://forms.stefcameron.com/2006/06/29/sorting-lists-at-runtime/#comment-5006</link>
		<dc:creator>Arne Metzner</dc:creator>
		<pubDate>Tue, 20 Mar 2007 09:41:29 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/blog/?p=23#comment-5006</guid>
		<description>When I open the dokument I have no function. Can you send me a mail how I could use this PDF.

With best regards


Arne Metzner</description>
		<content:encoded><![CDATA[<p>When I open the dokument I have no function. Can you send me a mail how I could use this PDF.</p>
<p>With best regards</p>
<p>Arne Metzner</p>
]]></content:encoded>
	</item>
</channel>
</rss>

